Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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 imbibing at the Monastery: (6)
As of 2015-10-07 01:20 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (169 votes), past polls