Name

AdminSub — restrict specific global subroutines to catalogs listed under AllowGlobal directive

SYNOPSIS

subroutine_name...

DESCRIPTION

Restrict usage of specified global subroutines to catalogs listed under the AllowGlobal directive.

If AdminSub is unspecified, all global subroutines can be used by all catalogs.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Defining AdminSub

AdminSub dangerous1 dangerous2

NOTES

AVAILABILITY

AdminSub is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 649

['AdminSub',     'boolean',       ''],

Source: lib/Vend/Config.pm
Line 3006 (context shows lines 3006-3023)

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;
}

AUTHORS

Interchange Development Group

SEE ALSO

AllowGlobal(7ic)

DocBook! Interchange!