Name

AdminSub — specify global subroutines that can be used only by catalogs listed under AllowGlobal directive

SYNOPSIS

subroutine_name...

DESCRIPTION

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.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Defining AdminSub

AdminSub dangerous1 dangerous2

NOTES

AVAILABILITY

AdminSub is available in Interchange versions:

4.8.0-5.7.0 (cvs-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 644

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

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

AUTHORS

Interchange Development Group

SEE ALSO

AllowGlobal(7ic)

DocBook! Interchange!