Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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?
Replies are listed 'Best First'.
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 lurking in the Monastery: (12)
As of 2015-07-08 06:00 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 (94 votes), past polls