in reply to not able to read remote file from linux machine
You're assuming -e returns false because the file isn't present. That might not be the case. Change
print STDERR "Error:File not present";
to
die("Can't stat config file \"$INI_FILE_PATH\": $!\n");
The important part is the use of $!.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: not able to read remote file from linux machine
by jwkrahn (Abbot) on Nov 10, 2008 at 09:47 UTC | |
|
Re^2: not able to read remote file from linux machine
by Anonymous Monk on Nov 10, 2008 at 10:04 UTC | |
by almut (Canon) on Nov 10, 2008 at 10:21 UTC | |
by ikegami (Patriarch) on Nov 10, 2008 at 10:42 UTC | |
by Anonymous Monk on Nov 11, 2008 at 11:51 UTC | |
by ikegami (Patriarch) on Nov 11, 2008 at 20:09 UTC |