If you read RE (tilly) 2 (not html): Why I like functional programming you will see that with a different parsing technique it is easy to handle brackets with a \ escape. Of course that is not the technique that perlmonks uses, so you won't see that improvement any time soon...