Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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..."; } }


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-11-01 13:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    If a safe, affordable anti-ageing treatment that extended life indefinitely were to become available, would you take it?



    Results (7 votes), past polls