in reply to Re^4: Correct idiom for default parameters
in thread Correct idiom for default parameters
Sorry, I don't follow?
Passing undef gives exactly the effect I would expect and desire. That of accepting the default for that parameter:
test( 'a', undef, 'c' );; p1:a; p2:2; p3:c
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Correct idiom for default parameters
by LanX (Saint) on Apr 28, 2010 at 23:05 UTC | |
by BrowserUk (Patriarch) on Apr 28, 2010 at 23:24 UTC |