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.
In reply to Re: Newbie doesn't understand Digest::MD5
by Corion
in thread Newbie doesn't understand Digest::MD5
by eltorio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |