Utilitarian has asked for the wisdom of the Perl Monks concerning the following question:
I got the latest from github built and installed and I'm working my way through "Using Perl 6" at the moment.
So may I extend a hearty thanks and congratulations to all involved, and request they undo the terrible damage they have caused in my household by popping over and doing the lawns ;)
Now, on to the question, The following code gives me the error stated, is there something obvious I'm not getting WRT blocks in Perl 6?
}else{#! /usr/local/bin/perl6 #vim: filetype=perl6 use v6; my $var="Does this work"; for $var.split(' ') -> $word{ if $word eq 'work'{ say "That worked we reached the end of the string";
Gives the error:say "Getting there..."; } }
===SORRY!=== Missing block at line 8, near "else{\n\t\tsa"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl6, latest Rakudo bug or error on my part?
by fod (Friar) on Aug 07, 2010 at 16:00 UTC | |
|
Re: SOLVED: Perl6, latest Rakudo bug or error on my part?
by moritz (Cardinal) on Aug 07, 2010 at 23:15 UTC | |
|
Re: Perl6, latest Rakudo bug or error on my part?
by Utilitarian (Vicar) on Aug 07, 2010 at 16:08 UTC | |
by chromatic (Archbishop) on Aug 07, 2010 at 20:12 UTC | |
by Utilitarian (Vicar) on Aug 08, 2010 at 21:34 UTC | |
by chromatic (Archbishop) on Aug 09, 2010 at 02:57 UTC | |
by Anonymous Monk on Aug 09, 2010 at 00:54 UTC | |
by xiaoyafeng (Deacon) on Aug 09, 2010 at 01:03 UTC | |
|