Re: Exiting without printing
- From: Tad McClellan <tadmc@xxxxxxxxxxxxxx>
- Date: Thu, 22 Dec 2005 22:34:45 -0600
Daniel Kaplan <NoSPam@xxxxxxxxxx> wrote:
> Hi All,
Hrrmph.
> Can someone direct me to the proper perldoc file which explains the easiest
> way to exit a Perl app?
perldoc -f exit
> I am writing a script that is run by the server once an hour,
"the server" is what kind of server? FTP server? SMTP server?
How is the program initiated? Via a cron job or some such?
> not via a web
> browser.
Oh, it is probably an HTTP server (ie. webserver) then?
> But a simple :
>
> exit (0); //causes Perl app to fail
No it doesn't.
It cause the Perl app to exit with a zero exit code, which indicates
success. Exiting with a non-zero exit code indicates failure.
So, it must be something other than the Perl app that is failing
at this point. Maybe you have not partitioned the problem correctly?
> If I precede it with :
>
> print $q->header();
> print "";
>
> Then everything is ok.
This has much more to do with how your web server is configured
than with Perl.
You have a much better chance of getting help if you ask
where they talk about web server configuration, instead of here.
--
Tad McClellan SGML consulting
tadmc@xxxxxxxxxxxxxx Perl programming
Fort Worth, Texas
.
- References:
- Exiting without printing
- From: Daniel Kaplan
- Exiting without printing
- Prev by Date: Re: How to in perl
- Next by Date: Re: Mix the output?
- Previous by thread: Re: Exiting without printing
- Next by thread: Re: Exiting without printing
- Index(es):
Relevant Pages
|
|