请帮我解决这个问题
pre_package_config.pm
use strict;
our %pre_pkg_configs;
$pre_pkg_configs{locDbList}=['default','default_test'];
第二个.pl
#!/usr/bin/perl
use Expect;
use strict;
our %pre_pkg_configs;
my $pre_pkg_file = './pre_package_config.pm';
eval {require $pre_pkg_file};
foreach my $db ( $pre_pkg_configs{locDbList} ){
print $db;
}
输出:
数组 (0x10092ae88)
本来应该:
默认 default_test