in reply to What would be the easier way
Use a hash table with an array ref for each entry, doing something like push @{ $height{$input} }, $value; after parsing each line into $input and $value; leaving you with something like this:
and @{$height{house}} would be all the values for house in an array%height = ( 'house' => [ string1, string2 ], 'table' => [ string3, string4 ] )
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: What would be the easier way
by zee3b (Novice) on Mar 04, 2013 at 01:12 UTC | |
by james2vegas (Chaplain) on Mar 04, 2013 at 01:50 UTC | |
by Anonymous Monk on Mar 04, 2013 at 01:36 UTC | |
by james2vegas (Chaplain) on Mar 04, 2013 at 01:47 UTC | |
| |
by Anonymous Monk on Mar 07, 2013 at 09:15 UTC |
In Section
Seekers of Perl Wisdom