summaryrefslogtreecommitdiff
path: root/t/base
diff options
context:
space:
mode:
authorClaes Jakobsson <claes@surfar.nu>2009-05-14 16:10:06 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-05-14 16:10:06 +0200
commitb1fc363696b1a308e6bce75eb292bacc8f2c9833 (patch)
tree1ac527627cc35c571b8d9719dab59e97907e1332 /t/base
parent7fecd077a7bc92add80772966a8c824277223d09 (diff)
downloadperl-b1fc363696b1a308e6bce75eb292bacc8f2c9833.tar.gz
Amelioration of the error message "Unrecognized character %s in column %d"
Changes the error message to "Unrecognized character %s; marked by <-- HERE after %s<-- HERE near column %d". This should make it a little simpler to spot and correct the suspicious character.
Diffstat (limited to 't/base')
-rwxr-xr-xt/base/lex.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/base/lex.t b/t/base/lex.t
index 1b8045be71..8cadf8505e 100755
--- a/t/base/lex.t
+++ b/t/base/lex.t
@@ -265,7 +265,7 @@ sub foo::::::bar { print "ok $test\n"; $test++ }
foo::::::bar;
eval "\$x =\xE2foo";
-if ($@ =~ /Unrecognized character \\xE2 in column 5/) { print "ok $test\n"; } else { print "not ok $test\n"; }
+if ($@ =~ /Unrecognized character \\xE2; marked by <-- HERE after \$x =<-- HERE near column 5/) { print "ok $test\n"; } else { print "not ok $test\n"; }
$test++;
# Is "[~" scanned correctly?