B
Bernd Schneider
Hello!
I am currently having some difficulties to share some variables.
I got a variable $a in my script index.pl.
Now I am using a module A.pm in this script.
In the script I got the variable $cgi (because I am using the Module
CGI.pm). How can I give this variable to the module so that it can be
used globally in the module? I do not want to rewrite all my functions
to give it as a parameter.
Is there a possibility to do this? Or is it not possible?
Would there be another approach to make the CGI Variables visible in my
module A.pm?
Thanks in advance!
I am currently having some difficulties to share some variables.
I got a variable $a in my script index.pl.
Now I am using a module A.pm in this script.
In the script I got the variable $cgi (because I am using the Module
CGI.pm). How can I give this variable to the module so that it can be
used globally in the module? I do not want to rewrite all my functions
to give it as a parameter.
Is there a possibility to do this? Or is it not possible?
Would there be another approach to make the CGI Variables visible in my
module A.pm?
Thanks in advance!