Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

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


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

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

Replies are listed 'Best First'.
Re^6: How does 'goto LABEL' search for its label?
by Anonymous Monk on Jan 16, 2013 at 23:52 UTC

    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

        Bla!

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

        I'm tired of this, AnoMonk...

        *sigh*

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013653]
help
Chatterbox?
[james28909]: ill be back with a solution eventually
[stevieb]: it's a reminder to re-inforce it :P
[atcroft]: james28909: That particular questions was a bit of trick, actually (depending on the country you are in). More interesting is, if you are trying to subtract from an epoch time, for instance, you might have to consider when/if DST occurs for a location,
[atcroft]: because you may have to adjust the number of seconds you change from an epoch from 86400 (not to mention leap seconds)....
[atcroft]: james28909: Although if your program is using a database, you might be able to "pass the buck" to the database and ask it to do the date change for you....

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2017-04-29 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.