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

Re^3: Parse a file into a hash

by aaron_baugher (Curate)
on Apr 05, 2012 at 22:19 UTC ( #963755=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    push @{$stack{$key}}, $value;
    
  2. or download this
    for my $key (keys %stack){
      for my $value (@{$stack{$key}}){
        # do stuff with $key and $value
      }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://963755]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2016-12-06 02:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (96 votes). Check out past polls.