projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35722e7
)
Silence mandatory warning by using @# instead of $#.
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Fri, 13 Jul 2007 06:12:50 +0000
(06:12 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Fri, 13 Jul 2007 06:12:50 +0000
(06:12 +0000)
"no warnings" is probably a bit inappropriate for a
base test. Putting -X on the command-line is probably
not a good idea, since it may hide other interesting
warnings in the future.
p4raw-id: //depot/perl@31601
t/base/lex.t
patch
|
blob
|
history
diff --git
a/t/base/lex.t
b/t/base/lex.t
index
984cdff
..
464e68b
100755
(executable)
--- a/
t/base/lex.t
+++ b/
t/base/lex.t
@@
-7,7
+7,7
@@
$x = 'x';
print "#1 :$x: eq :x:\n";
if ($x eq 'x') {print "ok 1\n";} else {print "not ok 1\n";}
-$x = $#
; # this is the register $#
+$x = $#
[0];
if ($x eq '') {print "ok 2\n";} else {print "not ok 2\n";}