If there is a chance that your argument won't exist, always set up some kind of error checking or set a default value. the code i've used is a shorter version of an if:else construct.my $inputValue = $_[0] || "some default value in case of no argument" +;
In reply to Re: Checking for Arguments before Usage?
by Anonymous Monk
in thread Checking for Arguments before Usage?
by nickcave25
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |