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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2018-03-17 22:30 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (227 votes). Check out past polls.