Skip to content

Commit d1f3808

Browse files
authored
Merge pull request #882 from jasongill/master
Restore compatibility with older Perl versions
2 parents 2feb466 + d6f7f97 commit d1f3808

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
@@ -6088,7 +6088,8 @@ sub mysql_myisam {
60886088
)
60896089
)
60906090
{
6091-
my $myisam_table_escape = $myisam_table =~ s/\|/\`/gr;
6091+
my $myisam_table_escape = $myisam_table;
6092+
$myisam_table_escape =~ s/\|/\`/g;
60926093
$sql_mig =
60936094
"${sql_mig}-- InnoDB migration for $myisam_table_escape\nALTER TABLE $myisam_table_escape ENGINE=InnoDB;\n\n";
60946095
infoprint
@@ -10895,7 +10896,11 @@ sub which {
1089510896
my $prog_name = shift;
1089610897
my $path_string = shift;
1089710898
my @path_array = split /:/, $ENV{'PATH'};
10898-
if ($is_win) { @path_array = split /;/, $ENV{'PATH'} =~ s/\\/\//gr; }
10899+
if ($is_win) {
10900+
my $path_env = $ENV{'PATH'};
10901+
$path_env =~ s/\\/\//g;
10902+
@path_array = split /;/, $path_env;
10903+
}
1089910904

1090010905
for my $path (@path_array) {
1090110906
if ($is_win) {

0 commit comments

Comments
 (0)