Re: A question about the dumplicated named global variables

2012-11-09 Thread Feng He
> > BTW, to avoid confusion I'd prevent the import() function from being > called in startup.pl by either > >   use Config1 (); >   use Config2 (); > > or > >   BEGIN { > require Config1; > require Config2; >   } > > Torsten Thanks Torsten. So if I don't use them in the startup.pl, then n

Re: A question about the dumplicated named global variables

2012-11-09 Thread Torsten Förtsch
On 11/09/2012 06:40 AM, Feng He wrote: > Nobody knows this item? I think you didn't get an answer here because the question is not related to modperl. It's purely perl matter. Exporting a variable out of package A into package X means something like *X::var=\$A::var; Now, you have to figure o

Re: A question about the dumplicated named global variables

2012-11-08 Thread Feng He
Hello, Nobody knows this item? thanks. 07.11.2012, 12:01, "Feng He" : > Hello, > > Sorry I now have a queston about this case. > > I have two PM for config options: > > package Config1; > use strict; > require Exporter; > > our @ISA = qw(Exporter); > our $example_var; > our @EXPORT = qw($example_