in reply to Re^4: File::stats issue
in thread File::stats issue
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: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: File::stats issue
by basarix (Initiate) on Mar 15, 2005 at 15:15 UTC |