I would increase the verbosity of the error message. eg:
if (-s $myAbsPathToFile) {print "Good to go"} else {print "File $myAbsPathToFile may be empty or missing: $!"};That way you can see that you are testing the right file and you will also see the error condition, if one exists.
It may also be that on your SuSE 11 box the file never gets created due to a permissions problem or somesuch. Do you check that it is opened correctly for writing and that the subsequent writes to it succeed?
In reply to Re: -s test option returns differently in some cases
by hippo
in thread -s test option returns differently in some cases
by frogsausage
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |