Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: problem with array of hashes

by Don Coyote (Monk)
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 lurking in the Monastery: (17)
As of 2014-08-27 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (238 votes), past polls