Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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 drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2016-10-26 00:48 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (330 votes). Check out past polls.