You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tyler Bird <bi...@epromo.com> on 2007/02/28 22:45:51 UTC

Detecting Unused Variables

I was wondering if there was some way I could run a script and have it 
detect all unused variables for me?

Anyone got an answer hopefully with out using and add on module?

I was also running how I could run time check all my modules.

Tyler

Re: Detecting Unused Variables

Posted by Perrin Harkins <ph...@gmail.com>.
On 2/28/07, Tyler Bird <bi...@epromo.com> wrote:
> I was wondering if there was some way I could run a script and have it
> detect all unused variables for me?

No.   You might be able to write a tool to do static analysis on your
code using PPI (from CPAN).  It's what Perl::Critic uses.

- Perrin