summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorJesse Vincent <jesse@bestpractical.com>2010-02-03 09:43:08 -0800
committerJesse Vincent <jesse@bestpractical.com>2010-02-03 09:43:08 -0800
commit14a86d0ccd20f01e74c8b4605e1dc764acc06a35 (patch)
treef4016eaa6321e2bed468d10421597c7a2f16367b /toke.c
parentea4c52f0a523df1f06490e701866bb9594395b00 (diff)
downloadperl-14a86d0ccd20f01e74c8b4605e1dc764acc06a35.tar.gz
Allow arbitrary whitespace between NAME and VERSION in "package NAME VERSION;" statements
Fixes [perl #72432]
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index 2d383b3019..9df0ff25b0 100644
--- a/toke.c
+++ b/toke.c
@@ -7014,6 +7014,7 @@ Perl_yylex(pTHX)
case KEY_package:
s = force_word(s,WORD,FALSE,TRUE,FALSE);
+ s = SKIPSPACE1(s);
s = force_strict_version(s);
OPERATOR(PACKAGE);