push @{ $Hash_filematches{ $filename } }, grep( /\/\Q$file_name\E#/i, +@{ + $Hash_filenames{ $filename } });
That'll even work if $Hash_filematches{ $filename } doesn't exist yet, when this line is run, thanks to autovivification.
In reply to Re: How to append data in a hash
by bart
in thread How to append data in a hash
by iphone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |