This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Revert "Respect hashbangs containing perl6"
[perl5.git] / toke.c
diff --git a/toke.c b/toke.c
index cf3163e..ee18153 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -5396,8 +5396,6 @@ Perl_yylex(pTHX)
                d = instr(s,"perl -");
                if (!d) {
                    d = instr(s,"perl");
-                    if (d && d[4] == '6')
-                        d = NULL;
 #if defined(DOSISH)
                    /* avoid getting into infinite loops when shebang
                     * line contains "Perl" rather than "perl" */