I start to REALLY love the site, few seconds save me hours.
thanks alot to Happy-the-monk and Sören !!
Re: problem with perl "for" loop
by esskar on Mar 11, 2004 at 18:08 GMT+5
well, your loop iterates one too much.
Fix:
for($left = 0; $left < $#hold; $left++)
{
if($hold
) { return 0; }
}
d/l code
Re: problem with perl "for" loop
by Happy-the-monk on Mar 11, 2004 at 18:09 GMT+5
It's a warning, not an error.
$hold
will eventually become bigger than the index of the array's last element.
Sören