Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Missing bytes??

by jwkrahn (Abbot)
on Apr 06, 2008 at 18:19 UTC ( [id://678666]=note: print w/replies, xml ) Need Help??


in reply to Missing bytes??

You don't have to read only one byte at a time:

open my $FILE, '<:raw', 'i:/lenova_2008-03-28.zip' or die "Cannot open + 'i:/lenova_2008-03-28.zip' $!"; open my $OUT, '>', 'i:/fullhexdump.txt' or die "Cannot open 'i:/fullhe +xdump.txt' $!"; $/ = \2048; my $count; while ( <$FILE> ) { $count += length; print $OUT unpack 'H*', $_; } close $FILE; close $OUT; print "\n\n$count\n\n";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found