in reply to data structure advice please
If you're hunting duplicates - it would have been wiser to check md5 sums (Digest::MD5) rather than names.
As far as data structure goes - I would recommend something in the form of:
It will allow you to easily iterate over your files, locate and count them.%files = ( <md5sum1> => [ <path1>, <path2> ... ], <md5sum2> => [ <path1>, <path2> ... ], );
HTH,
-- Mickey
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: data structure advice please
by johngg (Canon) on Nov 25, 2006 at 23:02 UTC | |
Re^2: data structure advice please
by anadem (Scribe) on Nov 25, 2006 at 21:53 UTC |
In Section
Seekers of Perl Wisdom