in reply to -s test option returns differently in some cases
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: -s test option returns differently in some cases
by frogsausage (Sexton) on Oct 14, 2013 at 08:44 UTC | |
by hdb (Monsignor) on Oct 14, 2013 at 08:48 UTC | |
by frogsausage (Sexton) on Oct 14, 2013 at 09:13 UTC | |
by frogsausage (Sexton) on Oct 14, 2013 at 08:53 UTC | |
|
Re^2: -s test option returns differently in some cases
by frogsausage (Sexton) on Oct 14, 2013 at 08:19 UTC |