Troy S wrote:
> How can i automatically detect unused variables in Perl?
> 
> i delcrae variables like:
> my $abc;
> 
> but don't use $abc within the subroutine.
> 
> how can i get perl to autmatically tell me that $abc is not being used
> (other than the declaration)????

Possibly use the output of B::Xref to look for variables with only an
introduction ("i")?

perldoc B::Xref

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to