Syntactic Confectionery Delight | |
PerlMonks |
Re: MD5 Peculiaritiesby gmax (Abbot) |
on Jun 22, 2003 at 10:11 UTC ( [id://267937]=note: print w/replies, xml ) | Need Help?? |
Debugging exerciseHere is how I would tackle the problem. Finding a suspect.I can see that the output of Digest::MD5 in OO mode is incorrect. By comparing with some independent programs, you realize that the output of md5sum and mysql is the same as the functional interface of Digest::MD5
Getting the evidenceNow, let's apply a constitutional principle, according tro which, everybody is innocent until proved guilty. So I would say that the OO interface is innocent, and look at the docs. They say that this is the regular format of the OO interface.
This is different from what you have done. Let's try it the "official" way.
This works fine. Proof of concept:
The verdictThe OO interface is innocent. Your implementation is guilty. :) _ _ _ _ (_|| | |(_|>< _|
In Section
Seekers of Perl Wisdom
|
|