Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: help with simplifying program

by Anonymous Monk
on May 24, 2013 at 12:41 UTC ( [id://1035123]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1035123]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-16 16:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found