Really, I'd suggest the die strategy, but this is closer to what you desired....unless( my $error = foo() ){ # do some stuff }else{ warn "whoops, foo() failed, error code: $error\n"; }
In reply to Re: Returning Error Codes
by duckyd
in thread Returning Error Codes
by qazwart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |