Skip to content

Commit 13f00eb

Browse files
committed
automake: port to Perl 5.22 and later
Without this change, Perl 5.22 complains "Unescaped left brace in regex is deprecated" and this is planned to become a hard error in Perl 5.26. See: http://search.cpan.org/dist/perl-5.22.0/pod/perldelta.pod#A_literal_%22{%22_should_now_be_escaped_in_a_pattern * bin/automake.in (substitute_ac_subst_variables): Escape left brace.
1 parent 749468a commit 13f00eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/automake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3878,7 +3878,7 @@ sub substitute_ac_subst_variables_worker
38783878
sub substitute_ac_subst_variables
38793879
{
38803880
my ($text) = @_;
3881-
$text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
3881+
$text =~ s/\$[{]([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
38823882
return $text;
38833883
}
38843884

0 commit comments

Comments
 (0)