in reply to Puzzler - filtering characters

With "strict" and "warnings" on:
Illegal octal digit '9' ignored at ...
perldiag says:
Illegal octal digit %s ignored (W digit) You may have tried to use an 8 or 9 in an octal number. Interpretation of the octal number stopped before the 8 or 9.
In other words, your character class will include the characters \000 - \000 (that is \000) and "9"