in reply to Perl won't Open() when called from Java
Update: Oh, I see that you do print $syslog_file. Look for leading/trailing white space characters in this. A newline or something like that might be causing the trouble.
Another update: Add $|=1; to the code. This turns off buffering to STDOUT. You may be actually reaching past the open(), but just can't see the message that this happened. Or alternatively, print to STDERR which is by default un-buffered.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl won't Open() when called from Java
by Anonymous Monk on Feb 23, 2012 at 19:33 UTC | |
by Anonymous Monk on Feb 23, 2012 at 19:35 UTC | |
by Marshall (Canon) on Feb 23, 2012 at 19:56 UTC | |
by ikegami (Patriarch) on Feb 23, 2012 at 20:22 UTC | |
by Marshall (Canon) on Feb 24, 2012 at 08:29 UTC | |
|
Re^2: Perl won't Open() when called from Java
by JavaFan (Canon) on Feb 23, 2012 at 19:44 UTC | |
by Marshall (Canon) on Feb 23, 2012 at 19:51 UTC |