in reply to Puzzler - filtering characters
I looked up an ASCII code table and it says that 008 & 009 are not codes for anything, so your bad character class was actually hitting the number nine.
'Works' for 008 => 8 too,
Update: Never mind, should have looked up 'octal'.
non-Perl: Andy Ford
In Section
Seekers of Perl Wisdom