Thread Digest::MD5 (8 answers)
Opened by StefanJ at 2006-03-15 16:58

FIFO
 2006-03-15 21:29
#63829 #63829
User since
2005-06-01
469 Artikel
BenutzerIn

user image
Du musst einen Dateihandle übergeben (hier in der Objektsyntax),
vgl. Manpage von Digest::MD5. Dann brauchst Du das CPAN-Modul ...::File nicht.

Code: (dl )
1
2
3
4
use Digest::MD5;
my $file = "c:/test.txt";
open(FILE, ':raw', $file) or die "Can't open '$file': $!";
print Digest::MD5->new->addfile(*FILE)->hexdigest, " $file\n";
\n\n

<!--EDIT|FIFO|1142451089-->
Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? -- Brian Kernighan: "The Elements of Programming Style"

View full thread Digest::MD5