<?xml version="1.0" encoding="windows-1252"?>
<node id="1010780" title="Re: system and -e question" created="2012-12-28 23:36:57" updated="2012-12-28 23:36:57">
<type id="11">
note</type>
<author id="524150">
syphilis</author>
<data>
<field name="doctext">
&lt;i&gt;Is there any explanation for that?&lt;/i&gt;&lt;br&gt;&lt;br&gt;One explanation is that $file2 exists, but it wasn't created where you expected and you're looking in the wrong place for it.
&lt;br&gt;&lt;br&gt;You can use File::Spec to determine the absolute path of $file2 - untested:
&lt;c&gt;
use File::Spec;
use warnings;
use strict;

my $file2 = 'whatever it is';
my $abs_path = File::Spec-&gt;rel2abs($file2);
print $abs_path, "\n";
&lt;/c&gt;
Cheers,&lt;br&gt;Rob</field>
<field name="root_node">
1010768</field>
<field name="parent_node">
1010768</field>
</data>
</node>
