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 (Acolyte)
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 voices are still...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2017-07-22 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (342 votes). Check out past polls.