Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: search binary file

by pc88mxer (Vicar)
on Jul 11, 2008 at 21:20 UTC ( [id://697092]=note: print w/replies, xml ) Need Help??


in reply to Re^2: search binary file
in thread search binary file

By ^A do you mean Control-A (i.e. chr(1)?

If so, use this:

if ($input =~ m/(data\x1)(\d+)\x2/) { print "1 = $1, length = ", length($1), "\n"; print "2 = $2\n"; }

Replies are listed 'Best First'.
Re^4: search binary file
by perlfan99 (Sexton) on Jul 11, 2008 at 22:23 UTC
    yes ^A means ctrl-A, thanks superdoc, your tip works

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found