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 reply to Re: sha256_hex checksum problem
by haukex
in thread sha256_hex checksum problem
by boboman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |