Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: while loop question

by Rudolf (Monk)
on Sep 06, 2012 at 13:32 UTC ( #992085=note: print w/ replies, xml ) Need Help??


in reply to while loop question

would the continue statement still execute after the loop has ended the last time?

while(x){}continue{};


Comment on Re: while loop question
Download Code
Re^2: while loop question
by Freezer (Sexton) on Sep 06, 2012 at 13:42 UTC
    Does continue behave differently in the two circumstances that I have mentioned?
      Yes. continue {} block will not be executed if last is used.

        ah okay, thanks I should have remembered that!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992085]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2015-07-05 03:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls