Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
    • Not a very helpful comment. Why is it considered harmful? Is it because of its interaction with 'eval'? perlvar lists this as a bug, and not one anyone seems to be too concerned with fixing. Given that more than one author uses this paradigm, I need a little more detail.
    • Ok - did you update this post? I don't remember it being a link to anything (hence my first post).

      What are your feelings on doing something like:

      *CORE::GLOBAL::die = sub{ ...handler ... }
      • I had this conversation once with Stas Bekman... Personally I think that overriding CORE::GLOBAL::die is even worse, because it probably breaks the case where some other module actually *does* use objectified exceptions. And overriding core functions should probably be done with utmost caution.

        I talked a bit about a possible solution here on perlmonks [perlmonks.org]. But it still doesn't protect you against the stupidity of others.