Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: problem with array of hashes

by Don Coyote (Pilgrim)
on Oct 09, 2012 at 21:55 UTC ( #998090=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ${${$VAR1}[0]}{41}
    
  2. or download this
    my $VAR2 = [ 101, 201, 42 ];
    
    ...
    
    -------
    101 101
    
  3. or download this
    my $VAR3 = [ {'101'=>'hel', '201'=>'lo', '42'=>'world'} ];
    
    ...
    
    -------
    world world
    
  4. or download this
    print $VAR3->[0]{42};
    ---
    world
    
  5. or download this
    my @VAR4 = ( {'101'=>'hel', '201'=>'lo', '42'=>'world'},' dereffed' );
    
    ...
    
    -------
    HASH(0x3e81a4) dereffed world world
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2015-07-30 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls