in reply to Preferred Error notification?
sub myfunc { my $arg1 = shift or (die|warn) "missing arg in myfunc"; }
die or warn based on severity of missing argument. But that's just me.
--
perl -e "print qq/just another perl hacker who doesn't grok japh\n/"
simeon2000|http://holdren.net/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Preffered Error notification?
by ChemBoy (Priest) on Aug 05, 2002 at 18:07 UTC | |
by chromatic (Archbishop) on Aug 06, 2002 at 01:26 UTC |