Only Perl Can Parse Perl, So<nobr> <wbr></nobr>...

pudge on 2001-01-26T14:03:58

Simon Cozens wrote a nifty bit of code called mangle, and sent it to the perl5-porters mailing list, for taking a Perl program and parsing it and giving back an array of tokens so one can do indenting, pretty-printing, syntax highlighting, etc.

Cozens later noted that Tim Maher has a similar project called pbeaut which uses perl to pretty-print Perl code.