Skip to content

Commit 9046903

Browse files
committed
bin/fix.pl: Make shebang inspector code work for perltidy
perltidy 20250912 was observed to misinterpret the '#' as starting a comment.
1 parent 08bea68 commit 9046903

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/fix.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ ($)
101101

102102
if ($opt_fixinterp && defined($path) && $path ne "") {
103103
$source =~ s/^#!.*perl.*\n/#!$path\n/
104-
unless $source =~ @^#!/usr/bin/env perl$@;
104+
unless $source =~ m{^#!/usr/bin/env perl$};
105105
}
106106

107107
if ($opt_fixlibdir) {
@@ -135,7 +135,7 @@ ($)
135135

136136
if ($opt_fixinterp && defined($path) && $path ne "") {
137137
$source =~ s/^#!.*python.*\n/#!$path\n/
138-
unless $source =~ @^#!/usr/bin/env python3?$@;
138+
unless $source =~ m{^#!/usr/bin/env python3?$};
139139
}
140140

141141
return $source;

0 commit comments

Comments
 (0)