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; }In reply to $! vs the @_ passed to your SIG(DIEWARN) handler by AidanLee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |