in reply to Re: Correct idiom for default parameters
in thread Correct idiom for default parameters
What about the more obvious following?
sub test{ my $p1 = shift || 1; [...]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Correct idiom for default parameters
by BrowserUk (Patriarch) on Apr 29, 2010 at 10:51 UTC |