in reply to do until loop breaks before meeting the condition
"end" is a non-empty string and thus is the or always true!
you maybe meant
...} until ( $result eq "END" or $result eq "end" );
or even better
...} until ( uc($result) eq "END" );
Cheers Rolf
(addicted to the Perl Programming Language)
PS: next time please try using <readmore> tags for long code! :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: do until loop breaks before meeting the condition
by thanos1983 (Parson) on Jun 08, 2014 at 14:38 UTC | |
by choroba (Cardinal) on Jun 08, 2014 at 14:52 UTC | |
by thanos1983 (Parson) on Jun 08, 2014 at 14:57 UTC | |
by choroba (Cardinal) on Jun 08, 2014 at 15:06 UTC | |
by thanos1983 (Parson) on Jun 08, 2014 at 18:46 UTC |