in reply to Want a faster replace, Please

Note that your regexp is wrong, it will replace [li] with <i>, as "li" matches /.?i/.

Of course, if it's speed you're after, and not correctness, you maybe able to get away with:

$message =~ y/[]/<>/;