The other way to do it is to take a copy of the array each time by using the anonymous array constructor.
while (<>) { my @record = split /,/; my $key = shift @record; $list{$key} = [@record]; }
In reply to Re: How do I create a new array in memory?
by davorg
in thread How do I create a new array in memory?
by Buckaroo Buddha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |