Re: Exiting without printing
- From: "Jürgen Exner" <jurgenex@xxxxxxxxxxx>
- Date: Fri, 23 Dec 2005 03:49:22 GMT
Daniel Kaplan wrote:
> 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, not via
> a web browser. But a simple :
>
> exit (0); //causes Perl app to fail
I don't believe you.
There is just about no way that this command could cause a program to fail
by any reasonable definition of "fail".
> If I precede it with :
>
> print $q->header();
> print "";
>
> Then everything is ok. Maybe it's nothing, but it just bothers me
> to have to do this output which servers no purpose.
I cannot repro your problem:
C:\tmp>type t.pl
use strict;
use warnings;
#do whatever you please
exit (0);
C:\tmp>t.pl
C:\tmp>
Obviously t.pl did not fail.
Please post a minimal but complete program that demonstrates the problem.
Also, please be more precise in describing in what you expect to happen
versus the actual behaviour of the program. Saying "it fails" is about as
informative as saying "my car doesnt' run" and can have just about as many
reasons from missing gas to a broken transmission or flat tires.
jue
.
- References:
- Exiting without printing
- From: Daniel Kaplan
- Exiting without printing
- Prev by Date: Re: Simple Perl Problem?
- Next by Date: Re: How to in perl
- Previous by thread: Re: Exiting without printing
- Next by thread: Re: Exiting without printing
- Index(es):
Relevant Pages
|
|