Now that Perl 5.9.5 is out, you can finally play with Misc Attribution Declaration to use the perl parser for fun and profit. First you compile it with something like:
./configure.gnu --prefix=/home/acme/perl595 -Dusedevel -Dmad=y make && make test && make install
Then if you have a foo.pl:
my $a = 1; my $b = 2; print $a + $b;
Then running "PERL_XMLDUMP="foo.xml" ./perl foo.pl " gives the following in foo.xml:
Figure out what all that XML means and you can write the first correct Perl syntax highlighter, implement JPerl (Jerl?), save the planet...
*rimshot*