Slash Boxes
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.
More | Login | Reply
Loading... please wait.
  • Always.

    If you use eval, there has to be a local $@ somewhere nearby. There is no good rule of thumb for where exactly because that depends on the structure of your code. But you have to make sure $@ is restored at some point before execution returns from the scope you are controlling. That is the key: do not pass control back to your caller without fixing $@ if you used eval.