Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 lurking in the Monastery: (7)
As of 2014-09-21 14:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (172 votes), past polls