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?

foo(undef, 1, 2);
Then the @_ version would shift off the undef, which is not what is wanted, I think.

Being contemplative
-v.

"Perl. There is no substitute."