AdminSub — specify global subroutines that can be used only by catalogs listed under AllowGlobal directive
Specify global subroutines that may only be used by catalogs
which are listed under the AllowGlobal directive.
Otherwise, in the default course of action, global subroutines can be used by all catalogs.
Interchange 5.7.0:
Source: lib/Vend/Config.pm
Line 2957 (context shows lines 2957-2974)
sub parse_boolean {
my($item,$settings) = @_;
my(@setting) = grep /\S/, split /[\s,]+/, $settings;
my $c;
if(defined $C) {
$c = $C->{$item} || {};
}
else {
no strict 'refs';
$c = ${"Global::$item"} || {};
}
for (@setting) {
$c->{$_} = 1;
}
return $c;
}