mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
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: Tim Hudson <tjh@openssl.org>
This commit is contained in:
parent
bdcadca24e
commit
56afc18714
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user