P is for Practical | |
PerlMonks |
Re: What would be the easier wayby james2vegas (Chaplain) |
on Mar 04, 2013 at 01:00 UTC ( [id://1021552]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|