XP is just a number | |
PerlMonks |
Re: sha256_hex checksum problemby haukex (Archbishop) |
on Sep 04, 2019 at 10:24 UTC ( [id://11105570]=note: print w/replies, xml ) | Need Help?? |
sha256_hex takes the data to be checksummed, not a filename, so what you're seeing is the SHA-256 checksum of the filename. Try this instead: print Digest::SHA->new("SHA-256")->addfile($filename)->hexdigest;
In Section
Seekers of Perl Wisdom
|
|