Re: Variables in Modules

2005-04-14 Thread Sergio Pires de Albuquerque
Lawrence Statton wrote: Dear Guys, I4ve been trying to develop an application that consists in about 8-10 scripts that should know about module variables (not OO yet). I read the docs and found that I can use a module variable (declared with our) in scripts that 'use' that module. Ok, there are:

Re: Variables in Modules

2005-04-14 Thread Sergio Pires de Albuquerque
David Dorward wrote: On Wed, Apr 13, 2005 at 05:14:31PM -0300, Sergio Pires de Albuquerque wrote: Thanks, but when I call another script from script1.cgi the value has gone HTTP is stateless. Each time a user requests an HTTP resource provided by a script, that script is run from scratch.

Re: Variables in Modules

2005-04-13 Thread Lawrence Statton
> Dear Guys, > > I´ve been trying to develop an application that consists in about 8-10 > scripts that should know about module variables (not OO yet). I read the > docs and found that I can use a module variable (declared with our) in > scripts that 'use' that module. Ok, there are: > > mod

Re: Variables in Modules

2005-04-13 Thread David Dorward
On Wed, Apr 13, 2005 at 05:14:31PM -0300, Sergio Pires de Albuquerque wrote: > Thanks, but when I call another script from script1.cgi the value has > gone HTTP is stateless. Each time a user requests an HTTP resource provided by a script, that script is run from scratch. If you want to make dat

Re: Variables in Modules

2005-04-13 Thread Sergio Pires de Albuquerque
Ovid wrote: --- Sergio Pires de Albuquerque <[EMAIL PROTECTED]> wrote: I tried with our, importing that var and fully qualified it, but always it get the previous value. My question is: Which method is common to share data among apps? What Am I doing wrong? Also, I always use "strict"

Re: Variables in Modules

2005-04-13 Thread Wiggins d'Anconia
Ovid wrote: --- Sergio Pires de Albuquerque <[EMAIL PROTECTED]> wrote: I tried with our, importing that var and fully qualified it, but always it get the previous value. My question is: Which method is common to share data among apps? What Am I doing wrong? Also, I always use "strict" and "warn

Re: Variables in Modules

2005-04-13 Thread Ovid
--- Sergio Pires de Albuquerque <[EMAIL PROTECTED]> wrote: > I tried with our, importing that var and fully qualified it, but > always > it get the previous value. My question is: Which method is common to > share data among apps? What Am I doing wrong? Also, I always use > "strict" and "warnin

Variables in Modules

2005-04-13 Thread Sergio Pires de Albuquerque
Dear Guys, I´ve been trying to develop an application that consists in about 8-10 scripts that should know about module variables (not OO yet). I read the docs and found that I can use a module variable (declared with our) in scripts that 'use' that module. Ok, there are: module1.cgi (declare