In this case, it's because the stat or lstat call failed. Check the return value:
Then re-run, and see what it dies of. Hopefully $! gives you enough info to keep going from here.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: $!";
In reply to Re^5: File::stats issue
by Tanktalus
in thread File::stats issue
by basarix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |