in reply to Re: Managing errors in subroutines
in thread Managing errors in subroutines
It's possible to do better than that. Remember Perl's notions
of truth can be applied to more than just numeric values.
Just return "" if there's no error (which evaluates to false),
and return whatever error string is appropriate otherwise,
which will evaluate to true.