Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 (Scribe) 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 (Scribe) 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 chilling in the Monastery: (10)
As of 2014-09-16 17:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (36 votes), past polls