Firstly read perldsc then you can try this approach:
while reading the file, chomp the line, split the line using '| ' havi +ng back col1 and col2 then push into the hash key col1 the value of c +ol2. Hint: being values of the hash all arrayrefs you need some deref +encing like in @{ $hash{ $col1 } } doing the push.
L*
In reply to Re: Need to get hash of arrays -- plain english
by Discipulus
in thread Need to get hash of arrays
by chandantul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |