AZed has asked for the wisdom of the Perl Monks concerning the following question:
I'm looking for the equivalent of -Wunused in C — or at least a moderate subset. I'd like to get a warning if a my variable goes out of scope without being used. I dug through warnings, perllexwarn, and perldiag, but didn't see anything appropriate.
There's a warnings::unused module, but the bug log for it notes that it can segfault, which makes me less than enthusiastic about trying it out.
There's also a Perl::Critic rule, but while I might eventually go that route and integrate it into my test files, that's a lot of work for what I was hoping to be a quick check.
Is there a simple method?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Warnings on unused variables?
by ikegami (Patriarch) on Sep 27, 2008 at 06:48 UTC | |
by AZed (Monk) on Sep 27, 2008 at 13:42 UTC | |
by ikegami (Patriarch) on Sep 27, 2008 at 18:27 UTC | |
by AZed (Monk) on Sep 27, 2008 at 21:19 UTC | |
by Corion (Patriarch) on Sep 27, 2008 at 21:23 UTC | |
| |
by ikegami (Patriarch) on Sep 27, 2008 at 22:58 UTC | |
| |
by ikegami (Patriarch) on Sep 27, 2008 at 23:02 UTC | |
| |
by Animator (Hermit) on Sep 28, 2008 at 12:46 UTC | |
by AZed (Monk) on Sep 28, 2008 at 16:02 UTC | |
by Animator (Hermit) on Sep 29, 2008 at 19:22 UTC | |
by AZed (Monk) on Oct 02, 2008 at 01:18 UTC | |
| |
by ikegami (Patriarch) on Sep 28, 2008 at 21:12 UTC | |
Re: Warnings on unused variables?
by grinder (Bishop) on Sep 27, 2008 at 12:17 UTC | |
Re: Warnings on unused variables?
by FunkyMonk (Chancellor) on Sep 27, 2008 at 08:10 UTC |
Back to
Seekers of Perl Wisdom