<?xml version="1.0" encoding="windows-1252"?>
<node id="440514" title="This one goes for the archives" created="2005-03-17 14:51:18" updated="2005-07-27 09:37:54">
<type id="11">
note</type>
<author id="418144">
rg0now</author>
<data>
<field name="doctext">
After many bugfixes that went to Pugs as the side-effect of this very nice contest, here is the final (now, really) version of my strike at the Santa Claus Golf Apocalypse with Pugs/Perl6 that is assumed to work with current Pugs:

&lt;code&gt;
--- head.p6 ---------------------------------------------
print*(=&lt;&gt;)[0..9]
--- tail.p6 ---------------------------------------------
my@l= =&lt;&gt;;
print@l[(@l&gt;9??@l-10::0)...]
--- rev.p6  ---------------------------------------------
print reverse=&lt;&gt;
--- mid.p6  ---------------------------------------------
my@l= =&lt;&gt;;
print@l[int((@l-1)/2)..int(@l/2)]
--- wc.p6   ---------------------------------------------
say*(split"",int(7e10+ +*(=&lt;&gt;)))[1..11]
&lt;/code&gt;

This is only 153 strokes, but I am entirely convinced that you can do it by less work... Go figure!

&lt;div class="pmsig"&gt;&lt;div class="pmsig-418144"&gt;
&lt;p&gt;rg0now
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
438876</field>
<field name="parent_node">
438876</field>
</data>
</node>
