Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Exchanging md5s between Perl and C

by bart (Canon)
on Oct 28, 2010 at 19:14 UTC ( [id://868122]=note: print w/replies, xml ) Need Help??


in reply to Re: Exchanging md5s between Perl and C
in thread Exchanging md5s between Perl and C

I'm pretty sure that is indeed the cause. Here's a test using md5sum from Perl:
open OUT, '>', 'tempfile'; print OUT 'a'; close OUT; system('md5sum', '-b', 'tempfile');
Result:
0cc175b9c0f1b6a831c399e269772661 *tempfile
So yeah, md5sum and Digest::MD5 agree.

It's the OP's other tests that were flawed.

Replies are listed 'Best First'.
Re^3: Exchanging md5s between Perl and C
by damian45 (Novice) on Oct 28, 2010 at 19:54 UTC

    ahhk! thank you very much, yes that was it.

    I previously had an issue with 32/64 bit and after going round and round until fixed, somewhere along the line I stared chasing my tail overlooking that minor but oh so important detail.

    cheers for you time! Glad it was as simple as that

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-03-19 03:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found