in reply to Re^2: Recursive search for duplicate files
in thread Recursive search for duplicate files

I have a question: Since %path_file is a hash why becomes an array here:
push @{$path_file{$filename}}, $path;
Dereferencing the array @path_file or the hash %path_file

Replies are listed 'Best First'.
Re^4: Recursive search for duplicate files
by moritz (Cardinal) on Nov 27, 2007 at 20:58 UTC
    The hash's values are references to arrays.

    Since push expects an array, not an array ref, it needs to be dereferenced with the @{ $array_ref } syntax.