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 and define var1)
main.cgi (declare and initialize var1)  "use module1"
script1.cgi (read and alter var1)       "use module1"
script2.cgi (gets var1 with undefined or previous value) "use module1"


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 "warnings".




Thanks in advance.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to