What you want is push:
push @array, $value;
Looking at your code, ensure that $Hash_filematches{ $filename } is a reference to an array.
Also note, it's not @Hash_filematches[0] - it's $Hash_filematches[0].
-- Ken
In reply to Re: How to append data in a hash
by kcott
in thread How to append data in a hash
by iphone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |