in reply to Re: data structure advice please
in thread data structure advice please
to$saved_info = $fileinfo{$_} ||= []; push @$saved_info,\@filedata;
beacause the arrayref will be autovivified if it didn't already exist.push @{ $fileinfo{$_} }, \@filedata;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: data structure advice please
by clinton (Priest) on Nov 25, 2006 at 19:59 UTC |