Of course, if it's speed you're after, and not correctness, you maybe able to get away with:
$message =~ y/[]/<>/;
In reply to Re: Want a faster replace, Please
by JavaFan
in thread Want a faster replace, Please
by SFLEX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |