"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! :)
In reply to Re: do until loop breaks before meeting the condition
by LanX
in thread do until loop breaks before meeting the condition
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |