<?xml version="1.0" encoding="windows-1252"?>
<node id="985702" title="Re: checking bareword-filehandle" created="2012-08-06 09:18:30" updated="2012-08-06 09:18:30">
<type id="11">
note</type>
<author id="616540">
moritz</author>
<data>
<field name="doctext">
&lt;p&gt;Is there a good reason not to use a lexical variable as file handle?

&lt;code&gt;
open my $FH, '&gt;', 'whatever' or warn 'blah';

# much much later

if ($FH) { print $FH "something }
&lt;/code&gt;

&lt;p&gt;works for sure.

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-616540"&gt;
[http://perl6.org/|Perl 6 - the future is here, just unevenly distributed]
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
985699</field>
<field name="parent_node">
985699</field>
</data>
</node>
