It takes all the PL_ vars I could find (minus the PL_ part) in Perl 5.13 and the looks for them in .C .H .XS and .XSI files and reports back if it found any.
It does give a few false positives but it is much easier then trying to pick them all out yourself or by recompiling and fixing as you go.
Cheers John Scoles
file_PL_vars.pl
Description: Perl program