Lou Hernsen wrote:
ok after reading about "our"
fact:
I use all global vars in the main program.
conclusion
I need to list all the vars in the module as our
in main
my $foo
in mod
our $foo
this will allow the vars to be used by both programs?
No.
A variable declared with "my" is only accessible within the enclosing
file, block, or eval.
"our" is a declaration that allows you to use a global (symbol-table)
variable name without a package qualifier when "use strict" is in effect.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>