in reply to open vs. sysopen
Okay, it was just a thought (kind of thing I'd goof up). I played with sysopen a little (not use-ing anything at all) and this worked okay (I shifted $file from the command line, and it was simply sheep.txt):
goshdammitforgot to use code brackets! It did write Whooyah to the file, so it worked all right. So maybe the trouble is in the $file string you're giving it, after all.sysopen(FH, $file, O_WRONLY | O_TRUNC | O_CREAT); print FH "Whooyah";
|
---|
Replies are listed 'Best First'. | |
---|---|
yes to close()
by sheep (Chaplain) on Dec 26, 2003 at 18:09 UTC | |
by Anonymous Monk on Dec 27, 2003 at 00:03 UTC |
In Section
Seekers of Perl Wisdom