Valkerri has asked for the wisdom of the Perl Monks concerning the following question:
But I tried to do the same thing on another box and found I had to use the following or I would get an Internal Server Error:close(DATA) or die "Content-type: text/html\n\n\n <P>HRUMPH \n\n <P>$! +";
This last appears to give me equally verbose error statements. What did I miss? Is this a server-based difference, something the ISP has configured differently? I am guessing the second server does not like the fact that the script died while the first server was not so sensitive?close(DATA) or print "Content-type: text/html\n\n\n <P>HRUMPH \n\n <P> +$!";
Thanks, as always, for helping my understanding.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: die vs. print in CGI
by jeffa (Bishop) on Aug 09, 2001 at 18:31 UTC | |
|
Re: die vs. print in CGI
by RatArsed (Monk) on Aug 09, 2001 at 18:36 UTC | |
|
Re: die vs. print in CGI
by suaveant (Parson) on Aug 09, 2001 at 18:33 UTC |