J
J Krugman
If I do
use strict;
my $bar;
use Foo '%Bar';
BEGIN {
$bar = \%Bar;
}
my script compiles fine, but when I try
use strict;
my $bar;
BEGIN {
require Foo;
Foo->import('%Bar');
$bar = \%Bar;
}
I get a compilation error ('Global symbol "%Bar" requires explicit
package name...'). What's wrong with the second version?
TIA,
jill
use strict;
my $bar;
use Foo '%Bar';
BEGIN {
$bar = \%Bar;
}
my script compiles fine, but when I try
use strict;
my $bar;
BEGIN {
require Foo;
Foo->import('%Bar');
$bar = \%Bar;
}
I get a compilation error ('Global symbol "%Bar" requires explicit
package name...'). What's wrong with the second version?
TIA,
jill