summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-27 19:31:56 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-27 19:31:56 +0000
commit2cd48dfddda7cedd271f0adfac2ed9f58f10189b (patch)
tree299f80f882148b8df36f17d0d19dfa9552fad912 /toke.c
parent1f257c956c5d42ce792dd5e0f3badf9851cef49c (diff)
downloadperl-2cd48dfddda7cedd271f0adfac2ed9f58f10189b.tar.gz
"Automate" change 32648 (ensure that -E always loads the latest
features) p4raw-id: //depot/perl@32744
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index b13239eeea..04190c3b45 100644
--- a/toke.c
+++ b/toke.c
@@ -3654,7 +3654,8 @@ Perl_yylex(pTHX)
}
}
if (PL_minus_E)
- sv_catpvs(PL_linestr,"use feature ':5.11';");
+ sv_catpvs(PL_linestr,
+ "use feature ':5." STRINGIFY(PERL_VERSION) "';");
sv_catpvs(PL_linestr, "\n");
PL_oldoldbufptr = PL_oldbufptr = s = PL_linestart = SvPVX(PL_linestr);
PL_bufend = SvPVX(PL_linestr) + SvCUR(PL_linestr);