perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thompson, Jon" <jth...@midwestern.edu>
Subject RE: EMBPERL_SESSION_HANDLER_CLASS = no
Date Tue, 04 Dec 2007 15:24:43 GMT
I didn't try that, however I did try this, which should be the same
thing:

$ENV{'EMBPERL_SESSION_HANDLER_CLASS'} = 'no';
require Embperl;

which didn't work. I gave up on trying to do this nicely and just
downloaded the source again and made a modification to the code so it
doesn't print this log.

-----Original Message-----
From: Andrew O'Brien [mailto:andrewo@oriel.com.au] 
Sent: Sunday, December 02, 2007 2:52 PM
To: embperl@perl.apache.org
Subject: RE: EMBPERL_SESSION_HANDLER_CLASS = no


Hi Jon,

> I've read up on this a bit, and it seems that I should be 
> able to do this:
> 
> $ENV{'EMBPERL_SESSION_HANDLER_CLASS'} = 'no';
> 
> In my CGI or at least set the environment variable for apache 
> and put this is my httpd.conf
> 
> PassEnv EMBPERL_SESSION_HANDLER_CLASS
> 
> Neither of these work. I understand that putting the 
> following in my httpd.conf should work assuming that I've 
> loaded mod_embperl & mod_perl:
> 
> EMBPERL_SESSION_HANDLER_CLASS no
> 
> However, *I don't have mod_perl*. Is there any way to turn 
> this message off without mod_perl?

If you're definitely not running under mod_perl (or Apache::Registry
etc) then does putting the the environment setting in a BEGIN block
help?

ie
BEGIN {
  $ENV{'EMBPERL_SESSION_HANDLER_CLASS'} = 'no';
}

...
use Embperl;
...

My only worry would be making sure you are definitely not running in an
environment that is caching any module compilations.

There are several example cgi handlers that come with the Embperl
distribution - it would be worth your while to have a look at these to
see how Embperl recommends you pass things like this through.

Cheers,

Andrew


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message