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/
In reply to Re: Preffered Error notification?
by simeon2000
in thread Preferred Error notification?
by RollyGuy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |