Just another Perl shrine | |
PerlMonks |
Re: Useless use of private variable in void contextby sflitman (Hermit) |
on Oct 11, 2009 at 19:11 UTC ( [id://800563]=note: print w/replies, xml ) | Need Help?? |
The problem is for($i;... as nothing is happening to $i there. Change it to $i=0, warning should go away. It is a little weird that the warning appears on the last line of the for-loop, but that's probably how the parsing worked out.
HTH,
In Section
Seekers of Perl Wisdom
|
|