Commit a6f22ed8 authored by Shawn M Moore's avatar Shawn M Moore
Browse files

no strict 'vars' for compile-time checking of templates

    Otherwise all the builtin templates that reference a variable throw
    a warning about bad variables
parent 2c3696d2
......@@ -662,7 +662,10 @@ sub CompileCheck {
my ($fi_type, $fi_text, $fi_lineno) = @$fi_item;
next unless $fi_type eq 'PROG';
eval "sub { $fi_text }";
do {
no strict 'vars';
eval "sub { $fi_text }";
};
next if !$@;
my $error = $@;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment