There are many ways to solve your problem, goto is 1 of them sure, but it is one that many of use prefer to avoid. That doesn't signifiy a lack of experience or knowledge, its just a preference.
No sorry it demonstarates clearly a lack of experience! Not in the way that you seem to have interpreted the statement but that's your problem not mine! The fact that I ask questions on this site indicates that my Perl experience is not great but in 32 years of programming I have a lot of experience working for different companies and that is the experience that I'm referring to! Were I to write this application from scratch then I would try not to use a goto but the constraints placed upon a humble programmer working with 3rd party code that I can't see never mind change forces the LCD solution! In this particular case a GOTO seems to be the most logical if not ideal solution! Sorry if this offends your sensibilities but life sucks what can I say!?
One final English lesson - "preference" implies choice - in this case I have none as re-writing the 3rd party code is NOT an option.

In reply to Re^2: Go to? by Ronnie
in thread Go to? by Ronnie

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.