This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b7a506
)
Add no warnings 'deprecated' to a test that assigns to $[
author
Nicholas Clark
<nick@ccl4.org>
Tue, 13 Oct 2009 12:32:50 +0000
(13:32 +0100)
committer
Jesse Vincent
<jesse@bestpractical.com>
Fri, 16 Oct 2009 16:30:14 +0000
(12:30 -0400)
t/op/index.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/index.t
b/t/op/index.t
index
834814e
..
6cc3f42
100644
(file)
--- a/
t/op/index.t
+++ b/
t/op/index.t
@@
-137,7
+137,8
@@
foreach my $utf8 ('', ', utf-8') {
foreach my $arraybase (0, 1, -1, -2) {
my $expect_pos = 2 + $arraybase;
- my $prog = "\$[ = $arraybase; \$big = \"N\\xabN\\xab\"; ";
+ my $prog = "no warnings 'deprecated';\n";
+ $prog .= "\$[ = $arraybase; \$big = \"N\\xabN\\xab\"; ";
$prog .= '$big .= chr 256; chop $big; ' if $utf8;
$prog .= 'print rindex $big, "N", 2 + $[';