in reply to sha256_hex checksum problem

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;

Replies are listed 'Best First'.
Re^2: sha256_hex checksum problem
by boboman (Initiate) on Sep 04, 2019 at 10:28 UTC
    That works great. Thanks.