> Dermot,
>
> Thanks for responding!
>
> Your points are correct; unfortunately, those errors were created by
my
> simplification attempts.
> But the problem is when I wish to refer to those variables in other
.pm
> modules that may be included with with use statements in the main .cgi
> progra
Vance E. Neff wrote:
Gunnar,
Thanks for your response!
That is what I started with
Which "that" are you referring to? Please do not top post.
So you can't do something like this:
our $variable = "value1" if (something is true);
our $variable = "value2" if (something else is true);
At ht
Gunnar,
Thanks for your response!
That is what I started with but then I was getting the error:
xxx.pm: "our" variable $DataBaseType redeclared at xxx.pm line nn.
Well it turns out that error was caused by some other problem. I did
not realize that "our" was not a function. So you can't do so
Hi,
Hello,
package options;
use strict;
use warnings; ### This might have helped
use base qw(Exporter);
our @EXPORT = qw(@BenefitsOptions %BenefitsOptions);
#our @EXPORT_OK = qw(); # If your not going to export anything,
# you might as well leave this out.
our %Ben
Vance E. Neff wrote:
I have a module options.pm defined as:
package options;
use strict;
use base qw(Exporter);
our @EXPORT = qw(@BenefitsOptions %BenefitsOptions);
our @EXPORT_OK = qw();
our %BenefitsOptions =(
"Dental"=>1,
"Full"=>2,
"Base"=>3,
Hi,
I'm trying to get some variables to be global in scope.
I have declared a bunch of variables that I want to be accessible
throughout my program.
I have a module options.pm defined as:
package options;
use strict;
use base qw(Exporter);
our @EXPORT = qw(@BenefitsOptions %BenefitsOptions);