in reply to Parsing Perl code?

You'd better read On Parsing Perl first, and also the subthread starting at Re: Re: Re: Appropriate CPAN namespace for perl parser.

In short, you can't really do what you want to do. At best, you'll approximate it. Even Emacs CPERL mode, written by the same crazy-but-brilliant Russian who wrote lots of the Perl debugger and Perl regular expression engine, still gets Perl parsing wrong.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.