Syntactic Confectionery Delight | |
PerlMonks |
Re: Nice style for interesting error messagesby Fastolfe (Vicar) |
on Jan 24, 2001 at 21:46 UTC ( [id://54057]=note: print w/replies, xml ) | Need Help?? |
Since "success" and "failure" seem to be pretty arbitrary, I might consider reversing the role of your function here:
In the more general case, some modules tend to use $@ to store error messages, or a package-specific variable (say, $Lookup::errstr) containing the message:
In Section
Seekers of Perl Wisdom
|
|