Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: problem with array of hashes

by Don Coyote (Hermit)
on Oct 09, 2012 at 21:55 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://998090]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-03-28 21:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found