in reply to Re^2: Simple IF, IF, IF or ELSE
in thread Simple IF, IF, IF or ELSE
The else only applies to the most recent if. In your code you had a number of solitary if statements, then a if/else statement.
You should read through the tutorials sections here, especially Flow Control Structures, but the whole Getting Started with Perl section would stand you in good stead. Without meaning to be unkind: you have some major gaps in your understanding of Perl (and programming languages generally) at this point!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Simple IF, IF, IF or ELSE
by abachus (Monk) on Jun 28, 2006 at 22:47 UTC | |
by GrandFather (Saint) on Jun 28, 2006 at 22:58 UTC |