Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: MD5 hex calculation

by talexb (Canon)
on Apr 24, 2013 at 14:13 UTC ( #1030415=note: print w/replies, xml ) Need Help??

in reply to MD5 hex calculation

You probably need to read the documentation -- although, having just looked at the perldoc for Digest::MD5, it's a little opaque.

You don't need to read anything from the file, or set the binmode .. something like

#! c:\\Perl\\bin\\Perl.exe use Digest::MD5 qw(md5_hex); open(FILE, "logs.txt"); # YOU NEED ERROR CHECKING HERE $md5_hex = Digest::MD5->new->addfile(FILE)->hexdigest; close(FILE); print "MD5: " . $md5_hex . "\n";
will probably work fine. I just deleted unnecessary lines from your code.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Replies are listed 'Best First'.
Re^2: MD5 hex calculation
by BigGer (Novice) on Apr 24, 2013 at 14:15 UTC

    Thank You. I will go and try that and report back. Thanks for your time and help.


      Worked perfectly . Brilliant another piece learned.Thank You


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030415]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2016-10-27 15:22 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (365 votes). Check out past polls.