We don't bite newbies here... much | |
PerlMonks |
Re: activestate opens files from commandline but not when executed as a cgiby feanor (Initiate) |
on Jun 10, 2002 at 21:34 UTC ( [id://173311]=note: print w/replies, xml ) | Need Help?? |
THE ANSWER IS: use single quotes, not double quotes in the
open() statement.
So: open(HEADER, 'D:\path\to\file\file.txt') || die ("$!"); This works! NOT: open(HEADER, "D:\path\to\file\file.txt") || die ("$!"); This doesn't work!
In Section
Seekers of Perl Wisdom
|
|