in reply to Digest md5 scratcher

One of the properties of hashes is that given the same input, a hashing algorithm will produce the same output. Guaranteed. Given that you're getting different output, that means that your input is different somehow. As a debugging mechanism, try printing the input value along with its hashed value. Something like:
use Digest::MD5 qw(md5_hex); my $var = "foobar"; print join("::", $var, md5_hex($var)), "\n";
My guess is that you're using the OO interface, calling add, and not calling reset. But that's a stab in the dark.

thor

Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come

Replies are listed 'Best First'.
Re^2: Digest md5 scratcher
by drrngrvy (Novice) on Apr 20, 2005 at 08:07 UTC
    You hit it in the face thor. I had already tested that the input (albeit without missing my earlier lack of chomping them down) was right but it was my not calling reset() that was my problem I think. Either way, switching to the slightly depressing non-OO mode got it working instantly. Now I'll have to test out those bits of the OO interface that I haven't used before.

    Thanks for your help guys.