Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Assigning default values to function arguments which may be “empty”by choroba (Cardinal) |
on Aug 17, 2016 at 19:33 UTC ( [id://1169944]=note: print w/replies, xml ) | Need Help?? |
Checking the length is a common way. If you are concerned about a new variable, use the one Perl already created for you:
In Section
Seekers of Perl Wisdom
|
|