Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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.

Replies are listed 'Best First'.
Re^2: delete FF's from a file
by james28909 (Chaplain) 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 (Chaplain) 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?
holli just tried to open a soda bottle with a bottleopener
[holli]: ok, that doesn't *sound* that bad
[Corion]: holli: Was it a "twist-to-open" soda bottle? Or a German Mehrweg bottle with a twisty cap?

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2017-09-25 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?