Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Devel::GC::Helper and unused variables

by bobf (Monsignor)
on Feb 27, 2007 at 06:13 UTC ( #602261=note: print w/replies, xml ) Need Help??


in reply to Devel::GC::Helper and unused variables

Secondly, does anyone know of a method to track down unused variables in large perl scripts, without the manual rigmarole?

I think the Name "%s::%s" used only once: possible typo warning will do what you want (see perldiag for caveats). You are using warnings, aren't you? ;-)

Otherwise, maybe there is something in either Quickly detecting variable writes or in diotalevi's Devel::Spy that could suit your needs. If you figure something out, please post your solution.

Replies are listed 'Best First'.
Re^2: Devel::GC::Helper and unused variables
by 0xbeef (Hermit) on Feb 27, 2007 at 21:59 UTC
    Yes, I have tried with both perl -w and use warnings, but this does not seem to detect unused declared variables that I add to test with.

    Thanks for the other info, I am trying some more now...

    Niel

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://602261]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2022-06-30 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (97 votes). Check out past polls.

    Notices?