in reply to Useless use of private variable in void context
I reckon that's because of lonely $i in for($i;...) at line 13. If you replace it with
orfor(;$i<$Size;$i++)
for(my $i=0; $i<$Size; $i++) no, that's not suitable for this case, thanks moritz for pointing this out.
the warning will gone. Note that Perl is not C and there's no need to declare all variables in the beginning of the block.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Useless use of private variable in void context
by moritz (Cardinal) on Oct 11, 2009 at 19:17 UTC | |
by okarmi (Initiate) on Oct 12, 2009 at 10:57 UTC | |
by moritz (Cardinal) on Oct 12, 2009 at 11:10 UTC | |
by okarmi (Initiate) on Oct 12, 2009 at 11:28 UTC | |
by MidLifeXis (Monsignor) on Oct 12, 2009 at 14:19 UTC | |
by GrandFather (Saint) on Oct 13, 2009 at 19:38 UTC |