Re: Initialize object permanently

2008-05-20 Thread Philip M. Gollucci
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André Warnier wrote: | The first thing that happens, is that there are multiple Apache children | processes started and running at the same time, and that you never know | which one is going to execute your script. And each one of these | children pr

Re: Initialize object permanently

2008-05-20 Thread william
On 5/20/08, william <[EMAIL PROTECTED]> wrote: > On 5/20/08, Dodger <[EMAIL PROTECTED]> wrote: > > 2008/5/19 Michael Peters <[EMAIL PROTECTED]>: > > > > > william wrote: > > > > > >> Then I would need to modify the QueryData module then, > > > > > > No don't do that. > > > > > >> by

Re: Initialize object permanently

2008-05-20 Thread william
On 5/20/08, Dodger <[EMAIL PROTECTED]> wrote: > 2008/5/19 Michael Peters <[EMAIL PROTECTED]>: > > > william wrote: > > > >> Then I would need to modify the QueryData module then, > > > > No don't do that. > > > >> by modifying > >> the standard module would it make my future maintenance more

Re: Initialize object permanently

2008-05-19 Thread Dodger
2008/5/19 Michael Peters <[EMAIL PROTECTED]>: > william wrote: > >> Then I would need to modify the QueryData module then, > > No don't do that. > >> by modifying >> the standard module would it make my future maintenance more >> complicated ? > > Absolutely. > >> Do you have any tips for me ? > >

Re: Initialize object permanently

2008-05-19 Thread Michael Peters
william wrote: > Then I would need to modify the QueryData module then, No don't do that. > by modifying > the standard module would it make my future maintenance more > complicated ? Absolutely. > Do you have any tips for me ? Wrap the object in your own package. Let's call it My::QueryDat

Re: Initialize object permanently

2008-05-19 Thread william
On 5/20/08, André Warnier <[EMAIL PROTECTED]> wrote: > If you never modify this object after creation, then the answer given by > Michael Peters is the one you are looking for. > > But make sure that the object is indeed never modified (or that what is > modified does not matter). I have not look

Re: Initialize object permanently

2008-05-19 Thread william
On 5/20/08, André Warnier <[EMAIL PROTECTED]> wrote: > > > william wrote: > > > On 5/20/08, william <[EMAIL PROTECTED]> wrote: > > > > > Hello, I just know that I can't have a startup script, but how can I > > > create an object in the startup script and then used that variable > > > object in c

Re: Initialize object permanently

2008-05-19 Thread Michael Peters
william wrote: > Hello, I just know that I can't have a startup script, but how can I > create an object in the startup script and then used that variable > object in child modperl script ? Thanks. It depends on your needs. If you need a read-only object that won't change during the whole time the

Re: Initialize object permanently

2008-05-19 Thread André Warnier
william wrote: On 5/20/08, william <[EMAIL PROTECTED]> wrote: Hello, I just know that I can't have a startup script, but how can I create an object in the startup script and then used that variable object in child modperl script ? Thanks. Sorry I mean I CAN have a startup script. Hi.

Re: Initialize object permanently

2008-05-19 Thread william
On 5/20/08, william <[EMAIL PROTECTED]> wrote: > Hello, I just know that I can't have a startup script, but how can I > create an object in the startup script and then used that variable > object in child modperl script ? Thanks. > Sorry I mean I CAN have a startup script.

Initialize object permanently

2008-05-19 Thread william
Hello, I just know that I can't have a startup script, but how can I create an object in the startup script and then used that variable object in child modperl script ? Thanks.