Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: Understanding arguments to subroutinesby cdarke (Prior) |
on May 14, 2012 at 12:45 UTC ( [id://970418]=note: print w/replies, xml ) | Need Help?? |
The hyphen is a bit of a throw-back to olden-times. This originally meant that the caller did not need to quote the keys – although that has not been required since version 5.6 and that functionality passed to the fat comma. The hyphen is not stripped off by perl, it is passed in @_ so the subroutine has to remove it.
In Section
Seekers of Perl Wisdom
|
|