http://qs1969.pair.com?node_id=1197950


in reply to Re^3: File integrity checker
in thread File integrity checker

BTW, if you want to test your error-checking code, you can break the stored checksum like this:
open my $F, '+<', 'file.gz' or die $!; seek $F, -8, 2; my $c = getc($F); seek $F, -8, 2; print $F chr(ord($c) ^ 1);
Running this a second time will fix the .gz file.