A
Andreas Krause
I'm looking for a module or program to find all declared but unused variables
in a Perl script.
The best thing I could find yet is B::Xref, which shows (in different parts
of its output) the lines, where a variable is defined and the lines and
subroutines, where it is used.
To use this info, I would have to process the output file to scan for all
usages for each variable to find the unused ones. Very cumbersome...
Any recommendations for a better approach?
andi
in a Perl script.
The best thing I could find yet is B::Xref, which shows (in different parts
of its output) the lines, where a variable is defined and the lines and
subroutines, where it is used.
To use this info, I would have to process the output file to scan for all
usages for each variable to find the unused ones. Very cumbersome...
Any recommendations for a better approach?
andi