Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: delete FF's from a file

by Corion (Pope)
on Feb 11, 2013 at 09:18 UTC ( #1018109=note: print w/ replies, xml ) Need Help??


in reply to delete FF's from a file

tr doesn't take a regular expression.

Most likely you will want to use s/// instead.


Comment on Re: delete FF's from a file
Download Code
Re^2: delete FF's from a file
by james28909 (Pilgrim) on Feb 11, 2013 at 09:26 UTC
    i did try $file =~ s/\F{16}//d as well as $file =~ s/\0{16}//g
    and it still did not work
Re^2: delete FF's from a file
by james28909 (Pilgrim) on Feb 11, 2013 at 09:27 UTC
    i did try $file =~ s/\F{16}//d as well as $file =~ s/\F{16}//g
    and it still did not work

      Neither \F nor \FF are how you represent an "FF character" in a string.

      Most likely you want \x{FF}, but you will find more information in the documentation as linked by Anonmyous Monk here already.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2014-12-18 06:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (43 votes), past polls