AidanLee has asked for the wisdom of the Perl Monks concerning the following question:
I know that in string context $! will print an error message (under the correct circumstances):
open(...) or die "Oops: $!";I was wondering if that is the same string or if it is different from the value passed to a signal handler written to handle a SIGWARN/DIE:
$SIG{WARN} = sub { print "doh: ".$_[0]; return; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: $! vs the @_ passed to your SIG(DIEWARN) handler
by tye (Sage) on May 05, 2001 at 02:23 UTC | |
|
Re: $! vs the @_ passed to your SIG(DIEWARN) handler
by stephen (Priest) on May 05, 2001 at 01:14 UTC |