No such thing as a small change | |
PerlMonks |
catching warningsby Anarion (Hermit) |
on Apr 26, 2002 at 00:37 UTC ( [id://162140]=perlquestion: print w/replies, xml ) | Need Help?? |
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
|
|