Subject: | -MError=:warndie is unhelpful in long strings on the stack |
Since Error=:warndie tries to stringifiy arguments to function calls, it can produce some very odd output if functions are passed e.g. multi-megabyte binary strings as arguments, or entire contents of files from disk, or other odd places.
Perhaps it would be best for it to detect the presence of nonprintables and escape those, and also elide the maximum length.
And while we're at it, more tuneability of when it prints at warn or die or both.
And also lets finally extract it out of Error.pm into its own, more sensible module name.
[these are largely notes-to-self]
--
Paul Evans