As others have mentioned, your question is only partly formed. To help in any meaningful way, one would need to know
  1. under what condition do you want to skip the loop activities?
  2. what do you want to do when you bypass the contents of the loop(where do you want to go)?
  3. once you have gone to where you want to go after #2 above, what do you want to do when you come back?
I am going to guess that you want to continue working inside the loop(from question #3 because going to the end and doing nothing is not sane)
I am going to restate what I think you are asking here:

enter a loop
do what is in loop unless/until some condition(if/unless) is met
**do something else(call a sub?)
then come back and continue to the next iteration of the loop(next)

It seems to me that this all boils down to putting a next/(some conditional) in the appropriate place in the loop activities.

...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results...

In reply to Re: any mechanism to go to the end of a loop but do not exit the loop by wjw
in thread any mechanism to go to the end of a loop but do not exit the loop by simonz

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.