Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: why use a hash instead of an array

by hbm (Hermit)
on Jun 12, 2013 at 02:59 UTC ( #1038378=note: print w/ replies, xml ) Need Help??

in reply to why use a hash instead of an array

In addition... fantastic for passing named parameters - without concern for their order:

connect(PW=>'poof!', IP=>'', USER=>'bob'); sub connect { # log in to $args{IP} as "$args{USER}/$args{PW}" # note default IP can be overridden %args = ( IP => '', @_ ); ... }

Comment on Re: why use a hash instead of an array
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2015-11-30 22:41 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (788 votes), past polls