Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: GOTO or not GOTO

by JavaFan (Canon)
on Jan 27, 2009 at 12:37 UTC ( #739172=note: print w/replies, xml ) Need Help??


in reply to Re^3: GOTO or not GOTO
in thread GOTO or not GOTO

So here's the next example, what does the following do:
Well, that's answered by the same second line of the goto documentation: It may not be used to go into any construct that requires initialization, such as a subroutine or a foreach loop.

For the third example, will to be trying to goto in a while block?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://739172]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-09-21 21:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (253 votes). Check out past polls.

    Notices?