Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: My "if" is failing!

by space_monk (Chaplain)
on Nov 28, 2012 at 22:51 UTC ( #1006123=note: print w/ replies, xml ) Need Help??

in reply to My "if" is failing!

Not an answer to your question so much as an observation.

The code in the else clause is rather similar to the code in the 'if' clause, so the code ought to be simplified. If you write code with duplicated sections, it makes it much harder to find out what went wrong and why.

A Monk aims to give answers to those who have none, and to learn from those who know more.

Comment on Re: My "if" is failing!
Replies are listed 'Best First'.
Re^2: My "if" is failing!
by Sumtingwong (Novice) on Nov 29, 2012 at 02:57 UTC
    Ok, thanks!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2015-11-29 21:12 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (753 votes), past polls