in reply to How to append data in a hash

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

Replies are listed 'Best First'.
Re^2: How to append data in a hash
by iphone (Beadle) on Nov 07, 2010 at 18:44 UTC

    Thanks a lot,that what i want