Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: how to extract original string from binary files?

by haukex (Archbishop)
on May 18, 2016 at 18:57 UTC ( [id://1163367]=note: print w/replies, xml ) Need Help??


in reply to how to extract original string from binary files?

Hi swapy345,

You would use the unpack templates which correspond to the data types contained within the binary file, these are documented in pack. Also, I'd recommend to open the file with the "raw" layer to make sure no translations happen, e.g. open my $fh, '<:raw', 'filename' or die $!; (see also binmode).

Hope this helps,
-- Hauke D

Log In?
Username:
Password:

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

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

    No recent polls found