summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-11-28 19:00:15 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-11-28 19:00:15 +0000
commit6a65c6a0721422f3dbac9c301f2d6e8b04b74975 (patch)
tree6469759b126fa667eb7491f936b81092b37f5f2b /toke.c
parentb11c3c9f9d8cb7f2e586a0cb99a9b1ca17f1b55c (diff)
downloadperl-6a65c6a0721422f3dbac9c301f2d6e8b04b74975.tar.gz
allow final period in a file (not followed by a newline) to
terminate format spec p4raw-id: //depot/perl@2369
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index fb54cee87c..e91fa8c480 100644
--- a/toke.c
+++ b/toke.c
@@ -6148,7 +6148,7 @@ scan_formline(register char *s)
#else
for (t = s+1;*t == ' ' || *t == '\t' || *t == '\r'; t++) ;
#endif
- if (*t == '\n')
+ if (*t == '\n' || t == PL_bufend)
break;
}
if (PL_in_eval && !PL_rsfp) {