Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: How to escape from sub to beginning of script?

by choroba (Abbot)
on Mar 29, 2012 at 12:52 UTC ( #962378=note: print w/ replies, xml ) Need Help??


in reply to Re^2: How to escape from sub to beginning of script?
in thread How to escape from sub to beginning of script?

OK, so add exit to other options :-)

Or, use a different variable, e.g. $restart, and set it to 1 only if you want to restart the loop. The loop then becomes

$restart = 1; while ($restart) { $restart = 0; .... }
Or whatever similar.


Comment on Re^3: How to escape from sub to beginning of script?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (13)
As of 2014-08-21 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (143 votes), past polls