in reply to help with simplifying program
That makes no sense?
Each of your inner loops is limited to the value of the preceding loop counter-1, so can never attain a value that would trigger your condition.
Ie. $x is limited to $w-1, so $x can never become equal to $w + $s for any value of $s, unless $s was -1 or less, but your $s loop start from 1 and increases.
In other words; your unless condition will always be false, and so it is doing nothing (except consuming cycles).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: help with simplifying program
by tobyink (Canon) on May 24, 2013 at 05:45 UTC |