NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Re: (Score:1)
Re: (Score:1)
Thoughts on your code:
File::Comparealready does the size comparison thing for you so there's no need for you to collect filesizes.You never check for symbolic links and you are missing the opportunity to compare inodes. If two filenames are links (hard or symbolic) to the same file, there's no need to compare the file to itself.
Another reason checking for symlinks is important is that if your code encounters a symlink to
..while recursing, it will just sit there twiddling thumbs. It's probably easiRe: (Score:1)
I had no links, so that was not a problem. I managed to downsize 3.7G of a Portuguese TV show down to 2.8G with this... awesome
I'll take a look on dupmerge, as you say (it might end up on my ~/bin)
Thanks