Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: File integrity checker

by no_slogan (Deacon)
on Aug 24, 2017 at 17:37 UTC ( #1197950=note: print w/replies, xml ) Need Help??


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.

Replies are listed 'Best First'.
Re^5: File integrity checker
by roperl (Beadle) on Aug 24, 2017 at 21:05 UTC
    That worked great. Thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1197950]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2019-05-20 20:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (129 votes). Check out past polls.

    Notices?