in reply to Can't open file using Perl as CGI
and this will show the error in your server's error log.open(INFILE, '<', 'textfile.txt') or die "unable to open textfile.txt: + $!"; ...
My guess is that you need to specify an absolute path for textfile.txt.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't open file using Perl as CGI
by timtowtdi (Sexton) on May 19, 2008 at 22:03 UTC |