I prefere this type of looping over lists. You need to have an expression for the coordinates too.for my $i (0 .. $#existing_wells){ for my $j (0 .. 100){ # or perhaps (0 .. min(100, $#existing_wells - $i) if($existing_wells[$i + $j] == $j + 1){ print qq( ...
In reply to Re: minimising repetitive if-elsing
by zby
in thread minimising repetitive if-elsing
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |