Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Searching in binary files

by jdporter (Paladin)
on Dec 15, 2005 at 15:51 UTC ( [id://516984]=note: print w/replies, xml ) Need Help??


in reply to Searching in binary files

You don't say what kind of file it is; so, if you do know anything about the structure of the file, you might to well to take a look at Tie::MmapArray. It works well for files which are strictly arrays of C-struct type data records; in general, such things look like binary to perl. Then you can simply iterate over the array of structs, and test the various fields for your pattern. You may even know which of the fields might and might not contain what you're searching for.

We're building the house of the future together.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-19 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found