Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 2015-07-29 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls