Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
gives#/usr/bin/perl use strict; use warnings; { local $SIG{__WARN__}="IGNORE"; warn '$SIG{__WARN__} was set to "IGNORE"!'; <=== appears }; { local $SIG{__WARN__}= sub {}; warn '$SIG{__WARN__} was set to sub {};!'; <=== doesn't appear };
Shouldn't ="IGNORE" and =sub {} behave similarly?$ perl SIGWARN.pl $SIG{__WARN__} was set to "IGNORE"! at SIGWARN3.pl line 8. $
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Meaning of $SIG{__WARN__}="IGNORE";
by Joost (Canon) on Mar 11, 2008 at 23:35 UTC | |
by Anonymous Monk on Mar 12, 2008 at 00:18 UTC |