M
Mike
I have a simple Perl script that works good as a standalone script that
I want to migrate to work from a web page link.
The script opens a file and does a couple greps to pull out specific
lines from the file and report to the user.
For the CGI script (not using CGI pm and can not use it) as soon as I
hit the open statement all output to the web page stops. For example:
{All the html header stuff printed before this}
printf("Line 1");
open ...
printf("Line 2");
I will see Line 1 but not Line 2
I put all the file i/o and grep/substr work in a sub and called it
first and now I get an Internal Server Error message. Looks like no
output is being generated at all.
If I comment out the open statement I see all my literals output minus
the info I read from the file.
It almost appears that when I hit the open statement, perl loses the
standard out file handle - ?
Is there something special I'm missing about using file IO in a CGI
script?
Any help would be appreciated.
Thanks
Mike
I want to migrate to work from a web page link.
The script opens a file and does a couple greps to pull out specific
lines from the file and report to the user.
For the CGI script (not using CGI pm and can not use it) as soon as I
hit the open statement all output to the web page stops. For example:
{All the html header stuff printed before this}
printf("Line 1");
open ...
printf("Line 2");
I will see Line 1 but not Line 2
I put all the file i/o and grep/substr work in a sub and called it
first and now I get an Internal Server Error message. Looks like no
output is being generated at all.
If I comment out the open statement I see all my literals output minus
the info I read from the file.
It almost appears that when I hit the open statement, perl loses the
standard out file handle - ?
Is there something special I'm missing about using file IO in a CGI
script?
Any help would be appreciated.
Thanks
Mike