in reply to Re: help with simplifying program
in thread help with simplifying program

The unless should read
next unless $dwx != $dxy and $dxy != $dyz;
otherwise you will not get all of the valid combinations

Replies are listed 'Best First'.
Re^3: help with simplifying program
by hdb (Monsignor) on May 24, 2013 at 12:46 UTC

    Your proposal gets less combinations! I admit that using unless and != is rather confusing but it is correct. It translates into

    next if $dwx == $dxy and $dxy == $dyz;

    which I should have used in the first place.

      you are correct. I didn't pay enough attention to the unless. That will teach me to be more careful.