Skip to content

Commit

Permalink
Use old version of s// operator
Browse files Browse the repository at this point in the history
  • Loading branch information
hakonhagland committed Aug 3, 2024
1 parent 48c7044 commit 0f9b0ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ sub check_alien_gsl_share_dir {
my $libs = Math::GSL::Alien->libs;
my $lib_dir = $libs =~ m{-L(\S+)} ? $1 : '';
if ($lib_dir) {
my $bin_dir = $lib_dir =~ s{/lib}{/bin}r;
# For compatibility with perl < 5.14 we can't use s{/lib}{/bin}r
(my $bin_dir = $lib_dir) =~ s{/lib}{/bin};
if (-d $bin_dir) {
$ENV{PATH} .= ":$bin_dir";
}
Expand Down

0 comments on commit 0f9b0ee

Please sign in to comment.