Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: Re: Default subroutine parameters (boo)by thelenm (Vicar) |
on Apr 23, 2002 at 16:21 UTC ( [id://161356]=note: print w/replies, xml ) | Need Help?? |
I really like this solution because it's syntactically simple.
It works when an argument is omitted entirely, but unfortunately it doesn't supply the default value when the value 'undef' is passed as an argument, like this:
But it's inspired me to see if I can modify it to suit my needs. Thank you!
In Section
Seekers of Perl Wisdom
|
|