![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Warnings on unused variables?by AZed (Monk) |
on Sep 27, 2008 at 06:12 UTC ( #713994=perlquestion: print w/replies, xml ) | Need Help?? |
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?
Back to
Seekers of Perl Wisdom
|
|