Re: PerlModule options?

2003-08-14 Thread Perrin Harkins
On Tue, 2003-08-05 at 04:55, [EMAIL PROTECTED] wrote: > loads the module but doesn't import the symbols since it is equivalent to > the use Foo::Bar (). Therefore I should use "use Foo::Bar" in each program > only to make the import. Correct. > Is there other way to load the module and import the

Re: PerlModule options?

2003-08-14 Thread Mike P. Mikhailov
Hello [EMAIL PROTECTED], Tuesday, August 05, 2003, 2:55:52 PM, you wrote: cfr> Hi list, cfr> One questions for the braves ;-) cfr> As I understand, the directive cfr> PerlModule Foo::Bar cfr> loads the module but doesn't import the symbols since it is equivalent to cfr> the use Foo::Bar (). T

Re: PerlModule options?

2003-08-14 Thread Stas Bekman
Mike P. Mikhailov wrote: Hello [EMAIL PROTECTED], Tuesday, August 05, 2003, 2:55:52 PM, you wrote: cfr> Hi list, cfr> One questions for the braves ;-) cfr> As I understand, the directive cfr> PerlModule Foo::Bar cfr> loads the module but doesn't import the symbols since it is equivalent to cf

RE: PerlModule options?

2003-08-14 Thread csebe
August 05, 2003 7:08 PM > To: Mike P. Mikhailov > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: PerlModule options? > > > Mike P. Mikhailov wrote: > > Hello [EMAIL PROTECTED], > > > > Tuesday, August 05, 2003, 2:55:52 PM, you wrote: > > > > c

RE: PerlModule options?

2003-08-14 Thread csebe
Sent: Tuesday, August 05, 2003 2:23 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: PerlModule options? > > > Hello [EMAIL PROTECTED], > > Tuesday, August 05, 2003, 2:55:52 PM, you wrote: > > cfr> Hi list, > > cfr> One questions for the br

RE: PerlModule options?

2003-08-09 Thread Perrin Harkins
On Tue, 2003-08-05 at 15:57, [EMAIL PROTECTED] wrote: > Thanks for your answer, this should do it indeed. Super! Somehow I didn't > think about perl sections... Perl sections will not work for this. If you do it there, the symbols you want will only get imported into the Apache::ReadConfig namesp

Re: PerlModule options?

2003-08-08 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hi again Stas & Perrin, So, its a no-can-do then. I'll keep putting the "use" in every module to import the symbols in the proper namespace. Alternatively I guess I could probably use the functions with fully qualfied name Apache::ReadConfig::myFunction(), however this wo

RE: PerlModule options?

2003-08-07 Thread csebe
gramEz.net > -Original Message- > From: Perrin Harkins [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 05, 2003 8:29 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: PerlModule options? > > > On Tue, 2003-08-05 at 04:55, [EMAIL PROTECTED] wrote: &g

Re: PerlModule hell - questions and comments

2002-03-23 Thread Kee Hinckley
At 7:04 PM +0800 3/23/02, Stas Bekman wrote: >If all you want to do is to be able to load the module only during >the restart use in startup.pl: > > if ($Apache::Server::ReStarting) { > require "My::Sensitive::Module"; > } No, the module has to be loaded during both phases, other wise

Re: PerlModule hell - questions and comments

2002-03-23 Thread Stas Bekman
Kee Hinckley wrote: > At 4:18 PM -0500 3/22/02, Perrin Harkins wrote: > >> Modules loaded with PerlModule and PerlRequire are not supposed to be >> loaded again the second time. I seem to remember that they are loaded >> again when using DSO though, so if you're using DSO you may want to >> r

Re: PerlModule hell - questions and comments

2002-03-22 Thread Kee Hinckley
At 5:11 PM -0500 3/22/02, Perrin Harkins wrote: >In your case, PerlFreshRestart might help with what you're trying to >do since it will clear %INC, but you may still have the problem with >needing to call Init. PerlFreshRestart will reload the module and thus call Init, but PerlFreshRestart is

Re: PerlModule hell - questions and comments

2002-03-22 Thread Kee Hinckley
At 5:11 PM -0500 3/22/02, Perrin Harkins wrote: >Kee Hinckley wrote: >>At Embperl 2.0b6 Gerald switched to a new architecture. The >>previous version was just a plain Perl module loaded as a handler >>by mod_perl. This version is also an Apache module. > >Okay, if it's only in the recent betas

Re: PerlModule hell - questions and comments

2002-03-22 Thread Perrin Harkins
Kee Hinckley wrote: > At Embperl 2.0b6 Gerald switched to a new architecture. The previous > version was just a plain Perl module loaded as a handler by mod_perl. > This version is also an Apache module. Okay, if it's only in the recent betas then it's possible that only a few people have enc

Re: PerlModule hell - questions and comments

2002-03-22 Thread Kee Hinckley
At 4:18 PM -0500 3/22/02, Perrin Harkins wrote: >Modules loaded with PerlModule and PerlRequire are not supposed to >be loaded again the second time. I seem to remember that they are >loaded again when using DSO though, so if you're using DSO you may >want to recompile as static. Also, if you

Re: PerlModule hell - questions and comments

2002-03-22 Thread Perrin Harkins
Kee Hinckley wrote:> 1. *Why* are the apache config files executed twice (completely with > loading and unloading all the modules)? This is a core apache thing. Apache does it to verify that a restart is safe. See http://thingy.kcilink.com/modperlguide/config/Apache_Restarts_Twice_On_Start.

Re: PerlModule not updating %INC

2001-11-21 Thread David Pisoni
At 11.00 -0500 11/21/2001, Perrin Harkins wrote: > > >David, are you using Apache::ReadConfig or anything that uses it? > >- Perrin Nope, not using ReadConfig. And to address another point, the behavior is consistant regardless of whether or not PerlFreshRestart is on. David

RE: PerlModule not updating %INC

2001-11-21 Thread Geoffrey Young
ok, here was my test... [geoff@mainsheet apache]$ diff -u conf/httpd.conf.default conf/httpd.conf --- conf/httpd.conf.default Wed Nov 21 02:00:16 2001 +++ conf/httpd.conf Wed Nov 21 11:59:35 2001 @@ -38,6 +38,8 @@ # server as "/usr/local/apache/logs/foo.log". # +PerlModule My::Foo +

RE: PerlModule not updating %INC

2001-11-21 Thread Geoffrey Young
> -Original Message- > From: Perrin Harkins [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 21, 2001 11:12 AM > To: Geoffrey Young; [EMAIL PROTECTED]; David Pisoni > Subject: Re: PerlModule not updating %INC > > > > IIRC, I ran a test with only h

Re: PerlModule not updating %INC

2001-11-21 Thread Perrin Harkins
> IIRC, I ran a test with only httpd.conf.default with only these additions > > PerlModule My::Foo > > then > > package My::Foo; > warn "initializing..."; > > > in lib/perl and I got 'initializing' on each restart. no Apache::ReadConfig > going on here. And no PerlFreshRestart?

RE: PerlModule not updating %INC

2001-11-21 Thread Geoffrey Young
> -Original Message- > From: Perrin Harkins [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 21, 2001 11:01 AM > To: Geoffrey Young; [EMAIL PROTECTED]; David Pisoni > Subject: Re: PerlModule not updating %INC > > > > I wonder if this has something t

Re: PerlModule not updating %INC

2001-11-21 Thread Perrin Harkins
> I wonder if this has something to do with the multiple init thing > > http://marc.theaimsgroup.com/?l=apache-modperl&m=100510779912574&w=2 It does. It's exactly the same bug. > if the interpreter is really being entirely broken down on each restart > (including the initial one that Apache doe

RE: PerlModule not updating %INC

2001-11-21 Thread Geoffrey Young
> -Original Message- > From: Perrin Harkins [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 20, 2001 6:43 PM > To: David Pisoni; [EMAIL PROTECTED]; Robert Landrum > Subject: Re: PerlModule not updating %INC > [snip] > > It sounds like this is a real bug wi

Re: PerlModule not updating %INC

2001-11-20 Thread David Pisoni
At 18.32 -0500 11/20/2001, Robert Landrum wrote: >> >If that is the case, My::Special::Module won't be loaded and compiled until the >very first time that someone hits /whatever. >> >>Just about EVERY module we use has a 'PerlModule' call to it, outside any enclosing >blocks. Although I do have

Re: PerlModule not updating %INC

2001-11-20 Thread Perrin Harkins
> If you preload, It's not going to put the module into %INC. > Otherwise Apache::StatINC would intentionally overwrite that shared > memory and destroy the purpose for using PerlModule in the first > place. ...and that's why you shouldn't use StatINC on a production server. There is no magic ab

Re: PerlModule not updating %INC

2001-11-20 Thread Robert Landrum
> > >If that is the case, My::Special::Module won't be loaded and >compiled until the very first time that someone hits /whatever. > >Just about EVERY module we use has a 'PerlModule' call to it, >outside any enclosing blocks. Although I do have 'PerlHandler' >directives in and blocks, the m

Re: PerlModule not updating %INC

2001-11-20 Thread David Pisoni
At 18.02 -0500 11/20/2001, Robert Landrum wrote: >At 2:31 PM -0800 11/20/01, David Pisoni wrote: >> >We have been doing development using mod_perl, but finding that Apache::StatINC >was not working as expected (i.e., we needed to restart the web server in order to >see our module changes in effe

Re: PerlModule not updating %INC

2001-11-20 Thread Robert Landrum
At 2:31 PM -0800 11/20/01, David Pisoni wrote: > >We have been doing development using mod_perl, but finding that >Apache::StatINC was not working as expected (i.e., we needed to >restart the web server in order to see our module changes in >effect.) Our apache config files preload all necessa

Re: PerlModule not updating %INC

2001-11-20 Thread David Pisoni
not >appear in Apache::Status "loaded modules" page, but do appear in the Inheritance tree. > >Ideas? > >Thanks, >David > >>Date: Thu, 18 Oct 2001 12:57:27 -0800 >>To: Stas Bekman <[EMAIL PROTECTED]> >>From: David Pisoni <[EMAIL PROTECTED

Re: PerlModule not updating %INC

2001-10-30 Thread David Pisoni
atus "loaded modules" page, but do appear in the Inheritance tree. Ideas? Thanks, David >Date: Thu, 18 Oct 2001 12:57:27 -0800 >To: Stas Bekman <[EMAIL PROTECTED]> >From: David Pisoni <[EMAIL PROTECTED]> >Subject: Re: PerlModule not updating %INC >Cc: Perri

Re: PerlModule not updating %INC

2001-10-18 Thread David Pisoni
At 1.13 +0800 10/17/2001, Stas Bekman wrote: >David Pisoni wrote: > >>>At 18.23 -0400 10/11/2001, Perrin Harkins wrote: >>> >At 18.07 -0400 10/11/2001, Perrin Harkins wrote: > >>>We are using perl 5.6.0 for Apache 1.3/20, with mod_perl 1.26. >>> >>Are you sure? There was a pro

Re: PerlModule not updating %INC

2001-10-16 Thread Stas Bekman
David Pisoni wrote: >>At 18.23 -0400 10/11/2001, Perrin Harkins wrote: >> At 18.07 -0400 10/11/2001, Perrin Harkins wrote: >>We are using perl 5.6.0 for Apache 1.3/20, with mod_perl 1.26. >> >Are you sure? There was a problem with %INC and PerlModule, but I > >>>thought

Re: PerlModule not updating %INC

2001-10-12 Thread David Pisoni
>At 18.23 -0400 10/11/2001, Perrin Harkins wrote: >> > At 18.07 -0400 10/11/2001, Perrin Harkins wrote: >> > > > We are using perl 5.6.0 for Apache 1.3/20, with mod_perl 1.26. >> > > >> > >Are you sure? There was a problem with %INC and PerlModule, but I >>thought >> > >it was fixed in 1.26. >> >

Re: PerlModule not updating %INC

2001-10-11 Thread David Pisoni
At 18.23 -0400 10/11/2001, Perrin Harkins wrote: > > At 18.07 -0400 10/11/2001, Perrin Harkins wrote: >> > > We are using perl 5.6.0 for Apache 1.3/20, with mod_perl 1.26. >> > >> >Are you sure? There was a problem with %INC and PerlModule, but I >thought >> >it was fixed in 1.26. >> > >> >- Perr

Re: PerlModule not updating %INC

2001-10-11 Thread Perrin Harkins
> At 18.07 -0400 10/11/2001, Perrin Harkins wrote: > > > We are using perl 5.6.0 for Apache 1.3/20, with mod_perl 1.26. > > > >Are you sure? There was a problem with %INC and PerlModule, but I thought > >it was fixed in 1.26. > > > >- Perrin > > Indeed, like I said, I tested it by dumping %INC my

Re: PerlModule not updating %INC

2001-10-11 Thread David Pisoni
At 18.07 -0400 10/11/2001, Perrin Harkins wrote: > > We are using perl 5.6.0 for Apache 1.3/20, with mod_perl 1.26. > >Are you sure? There was a problem with %INC and PerlModule, but I thought >it was fixed in 1.26. > >- Perrin Indeed, like I said, I tested it by dumping %INC myself -- the modul

Re: PerlModule not updating %INC

2001-10-11 Thread Perrin Harkins
> We are using perl 5.6.0 for Apache 1.3/20, with mod_perl 1.26. Are you sure? There was a problem with %INC and PerlModule, but I thought it was fixed in 1.26. - Perrin

Re: PerlModule Error

2001-08-24 Thread Rasoul Hajikhani
Stas Bekman wrote: > > On Thu, 23 Aug 2001, Rasoul Hajikhani wrote: > > > ___cliff rayman___ wrote: > > > > > > and what do the error logs say? > > > > > > Rasoul Hajikhani wrote: > > > > > > > I know this question will sound primitive to most of you, however, I > > > > have this nagging error w

Re: PerlModule Error

2001-08-24 Thread Rasoul Hajikhani
Ken Williams wrote: > > [EMAIL PROTECTED] (Rasoul Hajikhani) wrote: > >> > "use lib qw(...);". I have tried declaring: > >> > "use MY::Perl::Control::WebAccess;" in my startup.pl, with the same > > > >Here it is: > > > >Undefined subroutine &My::Perl::Control::WebAccess::handler called. > > Look

Re: PerlModule Error

2001-08-23 Thread Ken Williams
[EMAIL PROTECTED] (Rasoul Hajikhani) wrote: >> > "use lib qw(...);". I have tried declaring: >> > "use MY::Perl::Control::WebAccess;" in my startup.pl, with the same > >Here it is: > >Undefined subroutine &My::Perl::Control::WebAccess::handler called. Looks like you need to check the capitalizati

Re: PerlModule Error

2001-08-23 Thread Stas Bekman
On Thu, 23 Aug 2001, Rasoul Hajikhani wrote: > ___cliff rayman___ wrote: > > > > and what do the error logs say? > > > > Rasoul Hajikhani wrote: > > > > > I know this question will sound primitive to most of you, however, I > > > have this nagging error which won't go away. > > > In my httpsd.con

Re: PerlModule Error

2001-08-23 Thread Rasoul Hajikhani
___cliff rayman___ wrote: > > and what do the error logs say? > > Rasoul Hajikhani wrote: > > > I know this question will sound primitive to most of you, however, I > > have this nagging error which won't go away. > > In my httpsd.conf, I have declared "PerlModule > > MY::Perl::Control::WebAcce

Re: PerlModule Error

2001-08-23 Thread ___cliff rayman___
and what do the error logs say? Rasoul Hajikhani wrote: > I know this question will sound primitive to most of you, however, I > have this nagging error which won't go away. > In my httpsd.conf, I have declared "PerlModule > MY::Perl::Control::WebAccess" which I know is where it is supposed to >

Re: PerlModule

2001-08-16 Thread Perrin Harkins
> My apache server does not start up when I add > PerlModule B::TerseSize > to the httpsd.conf file. Or any "PerlModule" flag. Any one can tell me > why? I am trying to determine a leakage in my script... Do you have B::TerseSize installed on your system? It's not a standard module. Check your

Re: PerlModule in .htaccess (for auth) faults (possible patch forperl_config.c)

2000-09-26 Thread Doug MacEachern
On 22 Aug 2000, Andrew Gideon wrote: ... > My .htaccess file contains: > > PerlModule Apache::TAGXSessionAuth > PerlAuthenHandler Apache::TAGXSessionAuth->authen > PerlAuthzHandlerApache::TAGXSessionAuth->authz > > After attaching to a child process and getti

Re: PerlModule/Require didn't work ??

1999-12-21 Thread Doug MacEachern
On Thu, 16 Dec 1999 [EMAIL PROTECTED] wrote: > hi, > > I was wondering why the PerlModule and perlRequire didn't work for me. > I have a fresh installation of : > apache 1.3.9 + mod_perl 1.21 (that is bundled in RedHat6.1), > what was my surprise to see that when I try to use something like : >

Re: PerlModule/Require didn't work ??

1999-12-16 Thread Bill Marrs
This is the same problem I've been struggling with. What has fixed it for me is building Apache and mod_perl from the tar archives and linking Apache statically (no .so's). I haven't investigated much further, but even after I built Perl, Apache, and mod_perl by hand it still happened. Only w