Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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!
Re^2: My "if" is failing!
by Sumtingwong (Novice) on Nov 29, 2012 at 02:57 UTC
    Ok, thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2014-12-29 06:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (185 votes), past polls