in reply to Re^3: do until loop breaks before meeting the condition
in thread do until loop breaks before meeting the condition

To: choroba,

Thank you for your time and effort.

It works fine as long as the user enters more than 5 characters, if the user enters less than 5 still the loop breaks. I can not understand this part why it breaks?

Update

After carefully observing my mistake, I found out that I was still applying until ($result eq "END" || "end");.

Your example was absolutely fine, my mistake.

Again thank you for your time and effort

Seeking for Perl wisdom...on the process...not there...yet!

Replies are listed 'Best First'.
Re^5: do until loop breaks before meeting the condition
by choroba (Cardinal) on Jun 08, 2014 at 15:06 UTC
    The loop doesn't break for me for short inputs. Are you sure you copied and pasted exactly the code I posted?
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      To: choroba,

      You are right, I did not pay attention to the detail that you where pointing out:

      until uc $result eq "END";

      Based on this modification works just fine.

      Thank you for your time and effort assisting with my problem.

      Seeking for Perl wisdom...on the process...not there...yet!