<?xml version="1.0" encoding="windows-1252"?>
<node id="1013731" title="Re^2: 'Anonymous' copy via file handle fails" created="2013-01-17 03:51:20" updated="2013-01-17 03:51:20">
<type id="11">
note</type>
<author id="989451">
Monk::Thomas</author>
<data>
<field name="doctext">
Hmmm. The strange thing is I actually had a 'rewind' in there at some point but removed it again because it didn't have any impact. However if I change the first copy operation to

&lt;code&gt;
  copy $src_file, $tmp1_fh
    or die "$ERRNO\n";
  seek $tmp1_fh,0,0;
&lt;/code&gt;

then it magically works now. Thanks for the tip! Maybe there is some other bug lurking in the original program, but now that the basic copy works I'm sure to figure it out.
</field>
<field name="root_node">
1013642</field>
<field name="parent_node">
1013664</field>
</data>
</node>
