http://www.perlmonks.org?node_id=1013631


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

:) 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.

Replies are listed 'Best First'.
Re^5: How does 'goto LABEL' search for its label?
by LanX (Saint) on Jan 16, 2013 at 21:46 UTC
    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; "
        Bla!

        All you said is either obviously wrong, contradictory to what you claimed earlier or not new.

        I'm tired of this, AnoMonk...

        Cheers Rolf