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.
In reply to Re^3: Pass an optional parameter to a subroutine
by Velaki
in thread Pass an optional parameter to a subroutine
by ocs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |