I see no reason why your code shouldn't work. What did you use to test it?
Update: I'm tired today... The minute I dropped that code in my editor, I saw the problem.
the lowliest monk
In reply to Re: checking for reserved characters
by tlm
in thread checking for reserved characters
by Real Perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |