julie wang wrote:

> HI!
>
> I'm new to Modperl.  I been programming as a perl programmer (not the best,
> but I'm trying to improve) and been told to try and code using mod_perl.  I
> got ORA's book on Apache Modules and was reading about how to code using
> mod_perl.

> Am I right to assume mod_perl is more Apache conf. than anything
> else?

I wouldn't make that assumption, althought it's a big part of it... but there's
so much more!


> (if using Apache::Registry) I been coding perl using the -w flag as
> well as "use strict".  I shouldn't need to alter how I code Perl, right?
>

Nope, you shouldn't have to alter too much... -w and strict are just fine...


>
> Is there anyway to test if the server is running in mod_perl or not?

tail -f Apache's error.log file - when you start up Apache, you'll probably see
a line with the configuration info - you'll see mod_perl in there.

> I know
> this is one of the FAQ questions, but I didn't really understand.  I am
> using exit(0); and exit; to terminate my perl scripts.  What should I
> replace that with if it is advise not to do so when using mod_perl??

I guess it depends on what you are trying to do... there are a number of ways
to exit your scripts..... some are right, some are not...  it's hard to say
without details of what you are trying to accomplish...

> The
> FAQ suggests using "goto" kind of statement.  I rather not use that.  What
> other alternatives do I have?  Thanks!
>
> -- Julie

~Sean

Reply via email to