The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi this is my first post.
Hello Monks! Given that some OSes treat binary and text files differently (the latter messing around with line endings as you said in your first post), I think you really need a $mode argument to the Digest::SHA::addfile($filename [, $mode]) method. Otherwise you'd have to do something like this to generate the hash of a file in binary mode: It's easier to just call Digest::SHA::addfile($filename "b") It might cause fewer problems if Digest::SHA::addfile() defaulted to binary mode. In reply to Re^5: Digest::SHA gives different values for unix/windows
by zork42
|
|