projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
df3467d
)
Better test case for [perl #63854] Error parsing "[~"
Ian Goodacre [Sat, 14 Mar 2009 22:27:38 +0000 (23:27 +0100)]
t/base/lex.t
patch
|
blob
|
blame
|
history
diff --git
a/t/base/lex.t
b/t/base/lex.t
index
9892df5
..
1b8045b
100755
(executable)
--- a/
t/base/lex.t
+++ b/
t/base/lex.t
@@
-269,9
+269,6
@@
if ($@ =~ /Unrecognized character \\xE2 in column 5/) { print "ok $test\n"; } el
$test++;
# Is "[~" scanned correctly?
-eval '
- my @a;
- my $x = $a[~1]
-';
-print "not " if($@);
+@a = (1,2,3);
+print "not " unless($a[~~2] == 3);
print "ok 57\n";