|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
catching warningsby Anarion (Hermit) |
| on Apr 25, 2002 at 20:37 UTC ( [id://162140]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.Anarion has asked for the wisdom of the Perl Monks concerning the following question:
I try to catch into a variable this warning:
I have tried to trap it with $SIG{__WARN__} but it doesn't work outside of a BEGIN block, and that's what I want. Here's some code:
I have tried to use it inside an eval block: Any idea of why that happens and how to catch it without a BEGIN block? $anarion=\$anarion; s==q^QBY_^=,$_^=$[x7,print
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||