in reply to
Determining if you have balanced delimiters
I assume this code is an exercise of your regexp muscles (no doubt a worthy thing to do), because we already have
Text::Balanced
Comment on
Re: Determining if you have balanced delimiters
In Section
Cool Uses for Perl