Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Re: GOTO considered (a necessary) evil?

by clintp (Curate)
on Jul 16, 2002 at 02:19 UTC ( #181982=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: GOTO considered (a necessary) evil?
in thread GOTO considered (a necessary) evil?

But a redo (just like next and last is just a glorified goto.
I consider this statement blatently false and missleading.
  • redo FOO will only work if the label FOO exists at some surrounding loop block

I consider this statement to be inaccurate and not quite pendantic enough for flaming someone! Observe:

sub bar { no warnings 'exiting'; redo FOO; } FOO: { print "Hey!"; bar(); }
The redo worked and the label did not exist in a surrounding loop block.


Comment on Re: Re: Re: GOTO considered (a necessary) evil?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-01-27 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (197 votes), past polls