note
citromatik
<blockquote><c>my $discard = <$fh> for 1 .. 1;
# $discard no longer in scope here.</c></blockquote>
<p>I don't get the point, in what sense is your example better than this?</p>
<c><$fh>;</c>
<p>or</p>
<c><$fh> for 0..2;</c>
<p>The diamond operator doesn't use <c>$_</c> as default, so using it in "void" context silently reads the next line of the filehandle</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-615480">
<p><i>citromatik</i></p>
</div></div>
770971
771095