AutoEnd — specify macro to be executed automatically at the end of every page access
Specify an Interchange to be invoked automatically, at the end of every page access. This step is performed after all page parsing occurs, just before the whole transaction ends.
In other respects, it behaves the same as its closely related
directive Autoload.
Interchange 5.7.0:
Source: lib/Vend/Config.pm
Line 3700 (context shows lines 3700-3734)
sub parse_routine_array {
my($item,$settings) = @_;
return '' unless $settings;
my $c;
if(defined $C) {
$c = $C->{$item};
}
else {
no strict 'refs';
$c = ${"Global::$item"};
}
my @mac;
if($settings =~ /^[-\s\w,]+$/) {
@mac = grep /\S/, split /[\s,]+/, $settings;
}
else {
push @mac, $settings;
}
if(ref($c) eq 'ARRAY') {
push @$c, @mac;
}
elsif($c) {
$c = [$c, @mac];
}
else {
$c = scalar(@mac) > 1 ? [ @mac ] : $mac[0];
}
return $c;
}