in reply to Re: Identify Unused and Uninitialised variables.
in thread Identify Unused and Uninitialised variables.
may end up as:sub foo { my $i; for $i (...) { ... if (...) { my $i; $i = something; ... } } }
However, the inner '$i' certainly wasn't an unused variable.sub foo { my $i; for $i (...) { ... if (...) { # my $i; $i = something; ... } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Identify Unused and Uninitialised variables.
by Mr. Muskrat (Canon) on Jan 14, 2009 at 16:01 UTC |