<?xml version="1.0" encoding="windows-1252"?>
<node id="859265" title="Re: using perl 6 book trying first example" created="2010-09-08 01:58:31" updated="2010-09-08 01:58:31">
<type id="11">
note</type>
<author id="414875">
snoopy</author>
<data>
<field name="doctext">
Hi Dana,
&lt;p&gt;
I've managed to run your example script on both the latest rakudo built from git, plus rakudo star 2010.07.
&lt;p&gt;
I do notice however, that as soon as I put a blank line anywhere in the input file, I get the same error message as you:
&lt;code&gt;

Beth Ana Charlie Dave
Ana vs Dave | 3:0
Charlie vs Beth | 3:1
Ana vs Beth | 2:3
Dave vs Charlie | 3:0
Ana vs Charlie | 3:1

Beth vs Dave | 0:3
&lt;/code&gt;
Produces:
&lt;code&gt;
snoopy@snoopy-laptop:~/git/rakudo$ ./perl6 /tmp/score.p6
Method 'split' not found for invocant of class ''
  in &lt;anon&gt; at line 12:/tmp/score.p6
  in main program body at line 1
&lt;/code&gt;
So I think it's got something to do with the input data or the line separators. Maybe the cut-and-paste introduced something?</field>
<field name="root_node">
859263</field>
<field name="parent_node">
859263</field>
</data>
</node>
