Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Recursive search for duplicate files

by props (Hermit)
on Nov 27, 2007 at 20:53 UTC ( [id://653362]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://653362]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-04-18 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found