Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Parsing text file into a hash with multiple values per key

by dayton (Novice)
on Oct 03, 2012 at 21:19 UTC ( #997136=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    *******************Folder North***************
    Folder : North
    ...
             VM : host42307
             VM : host42308
    
  2. or download this
    open (FILE, 'data.txt') || die "Unable to open file";
    while (<FILE>) {
    ...
                push @{$hash{$host}}, $guest;
            }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2016-05-28 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?