Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Understanding arguments to subroutines

by cdarke (Prior)
on May 14, 2012 at 12:45 UTC ( #970418=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Understanding arguments to subroutines
in thread Understanding arguments to subroutines

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.


Comment on Re^3: Understanding arguments to subroutines

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://970418]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2014-08-21 17:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (139 votes), past polls