<?xml version="1.0" encoding="windows-1252"?>
<node id="443236" title="Re^5: Replaying Santa Claus Golf Apocalypse with Pugs/Perl6" created="2005-03-29 14:17:41" updated="2005-07-27 09:38:15">
<type id="11">
note</type>
<author id="418144">
rg0now</author>
<data>
<field name="doctext">
&lt;blockquote&gt;
 Open this and then call the block for every line of the resulting file handle, closing the file at the end.
&lt;/blockquote&gt;
&lt;p&gt;
Ok, I see. How about this one?
&lt;code&gt;
(=&lt;&gt;)[0..9].print
&lt;/code&gt;
This seems to work and it is semantically much closer to what you proposed: it opens the file, calls &lt;code&gt;print&lt;/code&gt; (which is not a block, but I think, it could be made one for no good) for each requested line.
&lt;p&gt;
It is an interesting question, whether we could omit the parentheses around &lt;code&gt;=&lt;&gt;&lt;/code&gt;. Although Pugs does not seem to like it, I am not entirely sure that &lt;code&gt;[]&lt;/code&gt; should bind so tight. 
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&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">
443121</field>
</data>
</node>
