writes "PPI is an 'almost parser' for Perl. It is able to parse almost all 'normal' perl code (i.e., not using source filters or other silliness) for analysis or modification whether or not the code works, and then re-assemble the original documents with all comments and whitespace intact. Within the understanding that 'only perl can parse Perl,' it is the next best thing, and will be used as a basis for autodoc, 'tidying,' syntax highlighting, refactoring and other similar tasks. While all the hard work is done now, and it is largely complete and quite usable, I've gotten tied up with work, and I will not have the time in the forseeable future to finish the final features, testing and docs to get it to 1.0.
For anyone with an interest in working with and manipulating Perl source, or even if you have always wanted to contribute something to CPAN but didn't know what, I'd like to extend an invitation to join in and help push the closest thing we will ever have to Parse::Perl through to completion. To take a look at the current state of things you install the latest version of PPI (0.828) from the CPAN."