in reply to Re: Puzzler - filtering characters
in thread Puzzler - filtering characters

I realize that. So it just used the ASCII value?

Replies are listed 'Best First'.
Re^3: Puzzler - filtering characters
by mwah (Hermit) on Oct 22, 2007 at 18:57 UTC

    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