in reply to Puzzler - filtering characters

9 isn't an octal digit!

Replies are listed 'Best First'.
Re^2: Puzzler - filtering characters
by rashley (Scribe) on Oct 22, 2007 at 18:45 UTC
    I realize that. So it just used the ASCII value?

      You meant

      ... $text =~ s/[\000-\009]/ /g; ... }

      But it does something like

      ... $text =~ s/[\000-\000]/ /g; # does nothing $text =~ s/[9]/ /g; ...

      BTW, maybe it's sometimes much faster to use the tr/\000-\011/ / operator, but that may depend.

      Regards

      mwa