Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: How does 'goto LABEL' search for its label?

by LanX (Canon)
on Jan 16, 2013 at 17:46 UTC ( #1013628=note: print w/ replies, xml ) Need Help??


in reply to Re^2: How does 'goto LABEL' search for its label?
in thread How does 'goto LABEL' search for its label?

> > I think in this context it's supposed to mean "block of a loop".

> goto says that literally

Really? Where?

And I hate the fact that it uses the term "construct" in two different meanings!!!

I'd really love to have the $cash to hire a crowd of math students to look thru the perldocs to clean up the wording.

Cheers Rolf


Comment on Re^3: How does 'goto LABEL' search for its label?
Re^4: How does 'goto LABEL' search for its label?
by Anonymous Monk on Jan 16, 2013 at 18:14 UTC
    :) In the docs, in goto, in the part i quoted, the part in bold, the part that says: any construct that requires initialization, such as a subroutine or a foreach loop.
      Constructs that require initialization such as a subroutine or a foreach loop can't be deprecated now because they never worked.

      Moritz showed a jump into a "construct" (an if block) w/o deprecation warning.

      So which blocks or "pieces of syntax made up of smaller pieces" exactly do belong to that set of now deprecated "constructs" is not defined within the perldocs.

      I hope you are aware that many kinds of loops are not foreach -loops.

      Cheers Rolf

        Moritz showed a jump into a "construct" (an if block) w/o deprecation warning.

        Its is optimized away , optimization before warning -- it is still deprecated

        So which blocks

        all of them -- if some aren't, its a warnings bug (maybe), not something that was forgotten to be deprecated

        I hope you are aware that many kinds of loops are not foreach -loops.

        Anything with a { bare block } is a loop and is deprecated

        perl -wE " { L1: say 1; } goto L1; "

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2015-07-06 17:56 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 (80 votes), past polls