in reply to Newbie doesn't understand Digest::MD5
My guess is that you're getting bitten by not setting the binary mode on the filehandle you're reading from. This is done easiest by using the binmode function:
binmode STDIN; $md5->addfile(\*STDIN);
Another possibility might be that the "echo" program is not outputting what you expect - maybe it is adding some whitespace like newlines even though you told it not to - that would be another thing to check.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Newbie doesn't understand Digest::MD5
by eltorio (Novice) on Apr 19, 2006 at 12:40 UTC | |
by Corion (Patriarch) on Apr 19, 2006 at 12:43 UTC | |
by eltorio (Novice) on Apr 19, 2006 at 12:50 UTC | |
by doran (Deacon) on Apr 19, 2006 at 22:29 UTC |