Consider CGI.pm as an exemplar. Return undef if an argument is missing and you can't substitute a reasonable default. die as a last resort.
In reply to Re: What Are The Rules For Subs And Modules When Fed Wrong Input
by dws
in thread What Are The Rules For Subs And Modules When Fed Wrong Input
by Cody Pendant
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |