http://www.perlmonks.org?node_id=1006123


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.

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