Welcome to the Monastery | |
PerlMonks |
Re^6: Correct idiom for default parametersby LanX (Saint) |
on Apr 28, 2010 at 23:05 UTC ( [id://837411]=note: print w/replies, xml ) | Need Help?? |
well, thats not the result I get:
p1:a; p2:2; p3:3 $p3 ne 'c' the first undef value omits the shift, all following parameters will be replaced by defaults! You need an explicit shift after the colon!
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|