This looks like a job for Text::Balanced. You might have to extract quoted strings first, then analyze the remaining code for curlies, but I'd start with that.
In reply to Re: Guessing source code depth with Perl.
by chromatic
in thread Guessing source code depth with Perl.
by Cap'n Steve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |