On Sat, 29 Jul 2000, Joshua Chamas wrote:

> > Is there a way to make it so that all Apache::ASP scripts on my site have
> > "use warnings;" on by default (something analogous to PerlSetVar Strict 1
> > and use strict;)? Or do I just have to put "use warnings;" in every file?
> 
> What does it do?  Never heard of it, same as -w?

warnings.pm is a new package introduced in a recent version of perl. AFAIK
it acts just like -w.

> Does putting it into your global.asa do the trick?  Its
> the same namespace as all of your scripts unless you use
> UniquePackages setting.

I just tried doing the global.asa thing, but I realized another problem.
Recently, I installed a new version of perl on my system (upgraded 5.00503
to 5.6). Something went wrong though; Apache::ASP is still using the old
version of perl. If I run /usr/bin/perl, /usr/local/bin/perl, or a CGI
script, the $] (version) variable evaluates to 5.6. But inside ASP
scripts, the version is 5.00503 (use warnings doesn't work in 5.00503).

Would you happen to know how to find out the pathname of the perl
executable that Apache::ASP is using? I found a file called
/usr/bin/perl5.00503, but relinking that to perl 5.6 had no effect.

Also, does ASP have a directive for turning on -w?

Thanks,

-Philip Mak ([EMAIL PROTECTED])

Reply via email to