How about return 0 for success and non-zero for an error with that non-zero number perhaps being an error code?
my $rc = doThis(); if ( $rc ) { error_routine($rc); # error_routine handles messaging for various e +rrors }
In reply to Re: style for returning errors from subroutines
by wardk
in thread style for returning errors from subroutines
by Boldra
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |