$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
In reply to Re: Managing errors in subroutines
by godzirra
in thread Managing errors in subroutines
by rbi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |