http://www.perlmonks.org?node_id=1032545


in reply to How do I end a while loop early?

You can exit from a while loop early with last, but I really don't understand what you are doing there with a while-loop...

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^2: How do I end a while loop early?
by davido (Cardinal) on May 08, 2013 at 00:25 UTC
      > He's trying to continue prompting for a login until the user is authorized

      Within a CGI with a while loop???

      Does CGI.pm implement continuations turning HTTP state-machines inside-out?

      Cheers Rolf

      ( addicted to the Perl Programming Language)