Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^4: Correct idiom for default parametersby LanX (Saint) |
on Apr 28, 2010 at 22:50 UTC ( [id://837404]=note: print w/replies, xml ) | Need Help?? |
careful! passing undef in between will break your idiom. IMHO better check scalar @_ or care explicitly about passing undef !
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|