<?xml version="1.0" encoding="windows-1252"?>
<node id="771115" title="Re^2: skipping the first line of a file" created="2009-06-12 17:45:22" updated="2009-06-12 17:45:22">
<type id="11">
note</type>
<author id="615480">
citromatik</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;c&gt;my $discard = &lt;$fh&gt; for 1 .. 1;
# $discard no longer in scope here.&lt;/c&gt;&lt;/blockquote&gt;

&lt;p&gt;I don't get the point, in what sense is your example better than this?&lt;/p&gt;
&lt;c&gt;&lt;$fh&gt;;&lt;/c&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;c&gt;&lt;$fh&gt; for 0..2;&lt;/c&gt;
&lt;p&gt;The diamond operator doesn't use &lt;c&gt;$_&lt;/c&gt; as default, so using it in "void" context silently reads the next line of the filehandle&lt;/p&gt;


&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-615480"&gt;
&lt;p&gt;&lt;i&gt;citromatik&lt;/i&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
770971</field>
<field name="parent_node">
771095</field>
</data>
</node>
