to$saved_info = $fileinfo{$_} ||= []; push @$saved_info,\@filedata;
beacause the arrayref will be autovivified if it didn't already exist.push @{ $fileinfo{$_} }, \@filedata;
In reply to Re^2: data structure advice please
by Arunbear
in thread data structure advice please
by anadem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |