in reply to Win32::daemon and Perl
open (OUT, ">>C:\perl\scripts\out.txt");
When you use double quotes, you also need double backslashes
">>C:\\perl\\scripts\\out.txt"
Alternatively, use single quotes
'>>C:\perl\scripts\out.txt'
Also, with most IO, it's a good idea to do some error handling, e.g.
open (OUT, '>>C:\perl\scripts\out.txt') or die "...some informative me +ssage...: $!";
(I'm not sure whether it's best to die in this case... this is just an example — modify as appropriate.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::daemon and Perl
by afoken (Chancellor) on Jun 04, 2009 at 10:07 UTC | |
by almut (Canon) on Jun 04, 2009 at 10:24 UTC |