krish28 has asked for the wisdom of the Perl Monks concerning the following question:
I use "strict" and "diagnostics" in my script and i get an error that says "useless use of addition (+) in void context at line #(where the for loop with $j is present in the above code)"for ($i=$analysisstartposn-1 ; $i<($seqlength-$windowsize) ; $i+$steps +ize) { for ($j = $i ; $j < $i+$windowsize ; $j++) { print OUTFILE "$i\t$j\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Incrementing one "for" loop within another "for" loop
by davido (Cardinal) on Feb 02, 2011 at 19:14 UTC | |
|
Re: Incrementing one "for" loop within another "for" loop
by wind (Priest) on Feb 02, 2011 at 19:16 UTC | |
by krish28 (Acolyte) on Feb 02, 2011 at 19:37 UTC | |
|
Re: Incrementing one "for" loop within another "for" loop
by ikegami (Patriarch) on Feb 02, 2011 at 21:55 UTC |