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
In reply to Re^3: Puzzler - filtering characters
by mwah
in thread Puzzler - filtering characters
by rashley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |