diff options
author | Leon Timmermans <fawaka@gmail.com> | 2015-04-19 13:03:28 +0200 |
---|---|---|
committer | Leon Timmermans <fawaka@gmail.com> | 2015-06-22 14:55:33 +0200 |
commit | d9fc04eebe29b8cf5f6f6bf31373b202eafa44d6 (patch) | |
tree | f5593d4d0e65dd4fb66ab4459607b8bfb1936d20 /toke.c | |
parent | 37b8cdd1927432f22e389f8405a9f8a198fb0360 (diff) | |
download | perl-d9fc04eebe29b8cf5f6f6bf31373b202eafa44d6.tar.gz |
Respect hashbangs containing perl6
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4863,6 +4863,8 @@ 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" */ |