Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: why use a hash instead of an array

by hbm (Hermit)
on Jun 12, 2013 at 02:59 UTC ( [id://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=>'10.102.102.13', USER=>'bob'); sub connect { # log in to $args{IP} as "$args{USER}/$args{PW}" # note default IP can be overridden %args = ( IP => '192.168.1.100', @_ ); ... }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-24 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found