Tanktalus....
i've already tried to do something like that, but it gave me an error, complaining that the method couldn't be called on an undefined value....
In this case, it's because the stat or lstat call failed. Check the return value:
my $src_stat = stat($srcname) or die "Can't stat $srcname: $!";
my $dst_stat = lstat($dstfile) or die "Can't lstat $dstfile: $!";
my $planesH_stat = stat('/trib/oper/scripts/planesH.s.P370') or die "C
+an't stat /trib/oper/scripts/planesH.s.P370: $!";
Thanx.... i will try to go from there, if not, i will work something from what i can gather from the File::stat info
I have finally solved my problem....
funny thing is that it was actually not that hard, once i started thinking about what i was doing...