Skip to content

Commit d6f7f97

Browse files
committed
Remove r modifier from regex for compatability with older Perl versions
1 parent 9b8617f commit d6f7f97

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

mysqltuner.pl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5406,7 +5406,8 @@ sub mysql_myisam {
54065406
)
54075407
)
54085408
{
5409-
my $myisam_table_escape = $myisam_table =~ s/\|/\`/gr;
5409+
my $myisam_table_escape = $myisam_table;
5410+
$myisam_table_escape =~ s/\|/\`/g;
54105411
$sql_mig =
54115412
"${sql_mig}-- InnoDB migration for $myisam_table_escape\nALTER TABLE $myisam_table_escape ENGINE=InnoDB;\n\n";
54125413
infoprint
@@ -9676,7 +9677,11 @@ sub which {
96769677
my $prog_name = shift;
96779678
my $path_string = shift;
96789679
my @path_array = split /:/, $ENV{'PATH'};
9679-
if ($is_win) { @path_array = split /;/, $ENV{'PATH'} =~ s/\\/\//gr; }
9680+
if ($is_win) {
9681+
my $path_env = $ENV{'PATH'};
9682+
$path_env =~ s/\\/\//g;
9683+
@path_array = split /;/, $path_env;
9684+
}
96809685

96819686
for my $path (@path_array) {
96829687
if ($is_win) {

0 commit comments

Comments
 (0)