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

Re: binary search/replace

by tilly (Archbishop)
on Jan 26, 2011 at 12:57 UTC ( #884332=note: print w/ replies, xml ) Need Help??


in reply to binary search/replace

If you call quotemeta on $cut, you should get a string that makes this work. Alternately you can use index to find the location to replace, and then use substr to do the replacement.

If you are on Windows, you will need to use binmode before reading in the data and substring to be sure that you are correctly loading the binary data.


Comment on Re: binary search/replace

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2014-08-23 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (172 votes), past polls