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).
In reply to Re: help with simplifying program
by BrowserUk
in thread help with simplifying program
by crunch_this!
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |