Z
zeke03
Hello,
I have a question concerning the String-CRC-Cksum-0.03 CPAN module.
I have downloaded Cksum.pm and Makefile.PL and put it in c:\perl\lib\cksum (i
work on Windows and i would work on unix and linux after)
I have launched "perl Makefile.PL", then the file Makefile has been create in
c:\perl\lib\cksum folder.
My little perl program, in a folder, i want to do a cksum to each files in the
folder (i am a beginner) doesn't work :
use String::CRC::Cksum;
use String::CRC::Cksum qw(cksum);
use File::Spec;
$reptra='c:\temp\data_integrity';
chdir $reptra or die "Can't go in work folder Because: $! \n";
### Globalisation
my @all_files = glob "*";
print Dumper @all_files;
### Threat
foreach $arg (@all_files)
{
$cksum=cksum($arg);
print "CHECK SUM = $cksum \n\n";
}
=> perl d:\ssh_integre.pl
Can't locate String/CRC/Cksum.pm in @INC (@INC contains: C:/Perl/lib) at
d:\ssh_integre.pl line 1.
BEGIN failed--compilation aborted at d:\ssh_integre.pl line 1.
Can someone help me ?
Thanks
(e-mail address removed)
I have a question concerning the String-CRC-Cksum-0.03 CPAN module.
I have downloaded Cksum.pm and Makefile.PL and put it in c:\perl\lib\cksum (i
work on Windows and i would work on unix and linux after)
I have launched "perl Makefile.PL", then the file Makefile has been create in
c:\perl\lib\cksum folder.
My little perl program, in a folder, i want to do a cksum to each files in the
folder (i am a beginner) doesn't work :
use String::CRC::Cksum;
use String::CRC::Cksum qw(cksum);
use File::Spec;
$reptra='c:\temp\data_integrity';
chdir $reptra or die "Can't go in work folder Because: $! \n";
### Globalisation
my @all_files = glob "*";
print Dumper @all_files;
### Threat
foreach $arg (@all_files)
{
$cksum=cksum($arg);
print "CHECK SUM = $cksum \n\n";
}
=> perl d:\ssh_integre.pl
Can't locate String/CRC/Cksum.pm in @INC (@INC contains: C:/Perl/lib) at
d:\ssh_integre.pl line 1.
BEGIN failed--compilation aborted at d:\ssh_integre.pl line 1.
Can someone help me ?
Thanks
(e-mail address removed)