Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 rifling through the Monastery: (6)
As of 2014-07-25 03:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls