Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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
Replies are listed 'Best First'.
Re^2: delete FF's from a file
by james28909 (Friar) 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 (Friar) 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 rifling through the Monastery: (13)
As of 2015-07-29 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls