Container-Buildah
view release on metacpan or search on metacpan
lib/Container/Buildah.pm view on Meta::CPAN
}
$cb->debug({level => 4}, "expand: $value -> [".join(" ", @result)."]");
return \@result;
}
# process scalar value
my $output;
$cb->{template}->process(\$value, $cb->{config}, \$output);
$cb->debug({level => 4}, "expand: $value -> $output");
# expand templates as long as any remain, up to 10 iterations
my $count=0;
while ($output =~ / \[% .* %\] /x and $count++ < 10) {
$value = $output;
$output = ""; # clear because template concatenates to it
$cb->{template}->process(\$value, $cb->{config}, \$output);
$cb->debug({level => 4}, "expand ($count): $value -> $output");
}
return $output;
}
( run in 0.472 second using v1.01-cache-2.11-cpan-71847e10f99 )