summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-11-17 06:10:40 -0800
committerFather Chrysostomos <sprout@cpan.org>2013-11-17 13:08:53 -0800
commit4407f1b81529944846e9211adf563fc23fdc2f19 (patch)
treee988a2601ee61f8efbb7f437297d8e3f62ca48fb
parent32a77fbe22419270b0c12791d3504011ad7f15b6 (diff)
downloadperl-4407f1b81529944846e9211adf563fc23fdc2f19.tar.gz
Remove extraneous dot from ‘Missing right brace...’
$ ./perl -Ilib -e '/\N{/' Missing right brace on \N{} or unescaped left brace after \N. at -e line 1, within pattern Execution of -e aborted due to compilation errors. That dot before ‘at -e’ is confusing.
-rw-r--r--t/lib/croak/toke6
-rw-r--r--toke.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/t/lib/croak/toke b/t/lib/croak/toke
index 8e4b0338a3..90204526a3 100644
--- a/t/lib/croak/toke
+++ b/t/lib/croak/toke
@@ -9,6 +9,12 @@ eval "s//<<foo/e"; die $@
EXPECT
Can't find string terminator "foo" anywhere before EOF at (eval 1) line 1.
########
+# NAME /\N{/
+/\N{/
+EXPECT
+Missing right brace on \N{} or unescaped left brace after \N at - line 1, within pattern
+Execution of -e aborted due to compilation errors.
+########
# NAME Missing name in "my sub"
use feature 'lexical_subs'; my sub;
EXPECT
diff --git a/toke.c b/toke.c
index efb6533ed8..180059e70b 100644
--- a/toke.c
+++ b/toke.c
@@ -3567,7 +3567,7 @@ S_scan_const(pTHX_ char *start)
if (! PL_lex_inpat) {
yyerror("Missing right brace on \\N{}");
} else {
- yyerror("Missing right brace on \\N{} or unescaped left brace after \\N.");
+ yyerror("Missing right brace on \\N{} or unescaped left brace after \\N");
}
continue;
}