<?xml version="1.0" encoding="windows-1252"?>
<node id="288428" title="Re: Re: Perl Idioms Explained - my $string = do { local $/; &lt;FILEHANDLE&gt; };" created="2003-09-02 16:30:18" updated="2005-07-07 15:23:08">
<type id="11">
note</type>
<author id="80322">
John M. Dlugosz</author>
<data>
<field name="doctext">
How about opening it in binary mode?  I would historically use a &lt;code&gt;binmode&lt;/code&gt; after opening, but in 5.8 I should be able to use &lt;code&gt;:raw&lt;/code&gt; or something like that.  When I tried once, I spent a few minutes trying to make it work, and went back to the old way.  What's the polished form of the idiom that uses the new syntax for binary files?&lt;P&gt;</field>
<field name="root_node">
287647</field>
<field name="parent_node">
287686</field>
</data>
</node>
