Just one correction and one nag:
The or has too low precedence and should be replaced with ||.
$_ isn't localized. I know, I'm cranky about this, but I actually find it worth pointing it out all the time. :-) (Take a look at Localizing $_ and while (<FH>) { ... }. (Is really: "Re: Re4: matching every occurrence of a regex") for a more elaborate view.)
ihbIn reply to Re: Re: Shorten script
by ihb
in thread Shorten script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |