in reply to Re: The art of error handling
in thread The art of error handling
That way, I get the undef return value, and store the error in the array in one shot. There's probably a few better ways, though.open(TEST, ">$file") or return $self->error("Failed to open $file");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: The art of error handling
by mirod (Canon) on Dec 19, 2000 at 21:58 UTC |