in reply to Managing errors in subroutines
$error_msg = sub1();
return $error_msg if ($error_msg ne ());
you can do this:
return $error_param if not sub1();
Godzirra!
Destroying Neo Tokyo since 1954
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Managing errors in subroutines
by Improv (Pilgrim) on Apr 16, 2003 at 12:39 UTC |