in reply to sysopen function call
Maybe $fullLogFile contains whitespace? I always use delimiters around filenames like this:
sysopen(LOGFILE, $fullLogFile, O_RDWR | O_CREAT) or die "Cannot open '$fullLogFile' for writing: $!";
Also, is there any reason you're using sysopen instead of plain open? Also, you should better use lexical filehandles instead of global filehandles:
open(my $logfile, '+>', $fullLogFile) or die "Cannot open '$fullLogFile' for writing: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sysopen function call
by rpike (Scribe) on Sep 08, 2010 at 14:12 UTC | |
by Corion (Patriarch) on Sep 08, 2010 at 14:15 UTC | |
by rpike (Scribe) on Sep 08, 2010 at 14:24 UTC | |
by mr_mischief (Monsignor) on Sep 08, 2010 at 15:12 UTC |