Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Setting variables inside a hash: newbie question

by hmerrill (Friar)
on Nov 15, 2004 at 12:57 UTC ( [id://407813]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      * passing scalars as themselves
    
    ...
    
      * passing a "reference to a hash" (which is itself a scalar)
          instead of the hash itself
    
  2. or download this
      sub do_something($my_scalar, $my_arrayref, $my_hashref) {
        my @my_array = @$my_arrayref;
        my %my_hash  = %$my_hashref;
        ### more code here ###
      }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-15 18:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found