Subject: | problem |
Date: | Thu, 14 Dec 2006 15:21:04 -0700 |
To: | bug-file-find-duplicates [...] rt.cpan.org |
From: | Robert C Chansler <rcchansl [...] us.ibm.com> |
I am a fairly new perl programmer, so the issue may be mine.
I coded a sample exactly like your synopsis and didnt get anything back.
This is on a windows system.
There about 20 duplicates in the dupes directory as I created it from the
perlcode directory.
Here is my code:
#! /usr/bin/perl
# pass 2 directory names in to compare
use File::Find::Duplicates;
my @dupes = find_duplicate_files("c:\perlcode", "c:\dupes");
print "dup 1 $dupes[0]\n";
foreach my $dupeset (@dupes){
printf "Files %s (of size %d) hash to %s\n";
join(", ", @{$dupeset->files}), $dupeset->size, $dupeset->md5;
}
I added the print command to see if there was anything in the array; there
wasnt.
The printf command also didnt execute.
When I changed the double quotes to single quotes as in your example, I got
the following output:
dup 1 File::Find::Duplicates::Set=ARRAY(0x1964f98)
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
Files (of size 0) hash to
What did I do wrong?
Bob Chansler
Sr IT Specialist
IBM Printing Systems Professional Services - Boulder
Phone:(303)924-6378