in reply to Re^2: Pass an optional parameter to a subroutine
in thread Pass an optional parameter to a subroutine
Exactly! What if someone sent in something like this?
Then the @_ version would shift off the undef, which is not what is wanted, I think.foo(undef, 1, 2);
Being contemplative
-v.
|
|---|