laziness, impatience, and hubris | |
PerlMonks |
Re: Default subroutine parametersby particle (Vicar) |
on Apr 22, 2002 at 17:08 UTC ( [id://161107]=note: print w/replies, xml ) | Need Help?? |
my preferred method is my $foo = shift // 'default'; alas, this method won't be available until perl 6 :( see Exegesis 3 for more details (there's a summary on page 7.)
~Particle ;Þ
In Section
Seekers of Perl Wisdom
|
|