Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: How to change these small one-liners into Perl6 code?

by LanX (Canon)
on Dec 23, 2012 at 02:06 UTC ( #1010063=note: print w/ replies, xml ) Need Help??


in reply to Re: How to change these small one-liners into Perl6 code?
in thread How to change these small one-liners into Perl6 code?

> 1. For some reason, Rakudo does not recognize the "LOOP:" construct, I just can't use "goto LOOP" to jump to a label.

loop is a control keyword in perl6 replacing c-style For Loops, IIRC to avoid the confusion with Foreach Loops.

You can't use a keyword as a label.

Cheers Rolf


Comment on Re^2: How to change these small one-liners into Perl6 code?
Re^3: How to change these small one-liners into Perl6 code?
by ABCXYZ (Novice) on Dec 23, 2012 at 02:18 UTC

    >> 1. For some reason, Rakudo does not recognize the "LOOP:" construct, I just can't use "goto LOOP" to jump to a label.

    >loop is a control keyword in perl6 replacing c-style For Loops, IIRC to avoid the confusion with Foreach Loops.
    >You can't use a keyword as a label.

    But I was using "LOOP:" instead of "loop", the interpreter should have distinguished them.

      oops sorry, no idea!

      the perl6 wizards are certainly soon back!

      (x-mas is a very symbolic date for them ;-)

      Cheers Rolf

        It's fine. Thank you all the same!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2014-10-01 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (31 votes), past polls