in reply to if/while/else problem
Exactly... a while statement cannot have an else clause. Adding a single "}" at just the right place (and removing one that is now in the wrong place) should make Perl very happy again.
Bearing in mind that “you are among friends,” for we have all done it, you may now slap your forehead and repeat after me: “DOH!!” :-D
| Replies are listed 'Best First'. | |
|---|---|
|
Re: if/while/else problem
by ddrew78 (Beadle) on Mar 25, 2009 at 18:59 UTC | |
by saberworks (Curate) on Mar 25, 2009 at 19:15 UTC |