Re: Can't use Apache::exit() in command-line scripts

2000-05-12 Thread Doug MacEachern
On Fri, 5 May 2000, Bill Moseley wrote: > At 12:05 AM 05/04/00 -0700, Doug MacEachern wrote: > >you're calling exit in a module? shame on you. if you call exit() from a > >script that is compiled by Apache::Registry (not include *.pm), exit() > >will be overridden for you to call Apache::exit,

Re: Can't use Apache::exit() in command-line scripts

2000-05-05 Thread Bill Moseley
At 12:05 AM 05/04/00 -0700, Doug MacEachern wrote: >you're calling exit in a module? shame on you. if you call exit() from a >script that is compiled by Apache::Registry (not include *.pm), exit() >will be overridden for you to call Apache::exit, no changes needed. >if you really want to call it

Re: Can't use Apache::exit() in command-line scripts

2000-05-03 Thread Doug MacEachern
On Wed, 3 May 2000, Franco Finstad wrote: > I have a large modperl site with modperl (CGI) scripts and command-line perl > scripts. > > My command line scripts load modules (.pm files) that use Apache::exit(). > This is giving me the following errors: > > ** > Bareword "

Re: Can't use Apache::exit() in command-line scripts

2000-05-03 Thread Jeff Beard
You should post the code in question. Your message isn't very clear but if I was to guess, you're trying to run a regular ol' command line Perl script under Apache::Registry which has more than a few caveats. --Jeff At 04:00 PM 5/3/00, Franco Finstad wrote: >I have a large modperl site with mo

Can't use Apache::exit() in command-line scripts

2000-05-03 Thread Franco Finstad
I have a large modperl site with modperl (CGI) scripts and command-line perl scripts. My command line scripts load modules (.pm files) that use Apache::exit(). This is giving me the following errors: ** Bareword "Apache::exit" not allowed while "strict subs" in use at as/