in reply to Re: Identify Unused and Uninitialised variables.
in thread Identify Unused and Uninitialised variables.
$ cat foo.pl use strict; use warnings; my ($unused, $i, $j); $i = $j; # uninitialized __END__ $ perlcritic -3 foo.pl Code not contained in explicit package at line 1, column 1. Violates +encapsulation. (Severity: 4) Module does not end with "1;" at line 5, column 1. Must end with a re +cognizable true value. (Severity: 4) $ perlcritic -Version 1.080 $
What version of perlcritic do you have? Perhaps mine is too old (1 year old), and I need to upgrade.
Do you have a .perlcritic file? Maybe that has some tool configuration settings that I need to use. Now that you have shown me this cool capability, I really want to use it. Any help would be appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Identify Unused and Uninitialised variables. (perlcritic)
by andreas1234567 (Vicar) on Jan 14, 2009 at 19:58 UTC | |
by toolic (Bishop) on Jan 14, 2009 at 20:41 UTC | |
by andreas1234567 (Vicar) on Jan 14, 2009 at 21:13 UTC |