Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Perl6, latest Rakudo bug or error on my part?

by fod (Friar)
on Aug 07, 2010 at 16:00 UTC ( #853584=note: print w/replies, xml ) Need Help??

in reply to SOLVED: Perl6, latest Rakudo bug or error on my part?

Hi Utilitarian I've been playing around with Rakudo a little too. I don't know the why of it but it seems that the existence (or not) of a space between a loop or conditional statement and the opening curly-brace is significant. For instance this works as intended:
#!/usr/bin/perl6 use v6; my $var="Does this work"; say $var; for $var.split(' ') -> $word { if $word eq 'work' { say "end of string"; }else {say "getting there..."; } }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://853584]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2018-03-18 06:09 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (228 votes). Check out past polls.