Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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
Domain Nodelet?
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 lurking in the Monastery: (2)
As of 2023-06-04 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (22 votes). Check out past polls.

    Notices?