提交 56afc187 编写于 作者: R Richard Levitte

Avoid the r modifier for s/// (perl)

It seems that the r modifier for s/// is fairly new.  It's reported
not to exist in perl 5.10.1, so it's better to avoid it when
possible.
Reviewed-by: NTim Hudson <tjh@openssl.org>
上级 bdcadca2
......@@ -1572,7 +1572,7 @@ sub get_openssl_version()
while(<IN>) {
if (/OPENSSL_VERSION_TEXT\s+"OpenSSL (\d\.\d\.)(\d[a-z]*)(-| )/) {
my $suffix = $2;
my $baseversion = $1 =~ s/\./_/gr;
(my $baseversion = $1) =~ s/\./_/g;
close IN;
return ($baseversion."0", $baseversion.$suffix);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册