Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 imbibing at the Monastery: (16)
As of 2015-04-28 19:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (528 votes), past polls