Re: Global variables from a module, while using strict



Shea Martin <sam_squirrelnutz@xxxxxxxxxxx> wrote
> I have a module which is basically a about 50 global variables and about
> 2 methods. Because I am 'using' strict, all of the variables are
> declared with 'my'.
>
> I in my scripts which use the module, I can't access any of the
> variables, though I can access the sub routines.

Try: perldoc -f our

hth,p

--
There's a storm on the horizon. It's gonna be everywhere.
-- Michael Moynihan
.



Relevant Pages

  • Re: "our" from XS and some other questions
    ... the old scripts require some vtxinterface.pl ... I also tried to emulate a "no strict" in XS (which, as I've found, simply ... to enable some perl code to utilize the new VTX API. ...
    (comp.lang.perl.misc)
  • Re: why to use 1)use CGI,2)use Strict ,3)use Carp in script
    ... The CGI.pm module is used in most cgi scripts, ... The 'strict' and 'warnings' pragmas should be used in all scripts ... The Carp module provides better report messages than the standard "die" ...
    (perl.beginners)
  • Re: script works from shell but not http
    ... > use strict; ... > None of my scripts are functioning on my new server. ... open STDERR, ... and check your Apache log file. ...
    (perl.beginners)
  • Re: How to make global vars?
    ... > I'm trying to figure out how to use/make simple global vars. ... > seperate file that does the connection and call it in the other scripts; ... > use strict; ... perldoc strict ...
    (comp.lang.perl.misc)
  • Re: what is @$?
    ... James Gilbert wrote in comp.lang.perl.misc: ... > I recently found this piece of code in one of my scripts: ... > and compiles under strict. ...
    (comp.lang.perl.misc)