Name

Pragma — specify pragma's default value

SYNOPSIS

pragma_name [=value]

DESCRIPTION

The directive enables specified Interchange pragma by setting it to "1" or a user-supplied value.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Enabling 'dynamic_variables' pragma

Pragma dynamic_variables

Example: Disabling 'dynamic_variables' pragma

Pragma dynamic_variables=0

Example: Setting 'init_page' pragma to a specific value

Pragma init_page=myInitRoutine

NOTES

Please see the pragma glossary entry for complete information.

AVAILABILITY

Pragma is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 640

['Pragma',        'boolean_value',    ''],

Source: lib/Vend/Config.pm
Line 3033 (context shows lines 3033-3058)

sub parse_boolean_value {
my($item,$settings) = @_;
my(@setting) = split /[\s,]+/, $settings;
my $c;

if(defined $C) {
  $c = $C->{$item} || {};
}
else {
  no strict 'refs';
  $c = ${"Global::$item"} || {};
}

for (@setting) {
  my ($k,$v);
  if(/=/) {
    ($k,$v) = split /=/, $_, 2;
  }
  else {
    $k = $_;
    $v = 1;
  }
  $c->{$k} = $v;
}
return $c;
}

AUTHORS

Interchange Development Group

SEE ALSO

tag(7ic)

DocBook! Interchange!