Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2016-09-28 19:53 GMT
Find Nodes?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:

    Results (540 votes). Check out past polls.