From: Nicholas Clark Date: Tue, 13 Oct 2009 14:16:16 +0000 (+0100) Subject: Bracket deprecated features with no warnings 'deprecated'; X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=136c2a5ed8214b1a6791e11379cbee1edd6c291c;p=p5sagit%2Fp5-mst-13.2.git Bracket deprecated features with no warnings 'deprecated'; --- diff --git a/t/op/array.t b/t/op/array.t index 74539a8..0027f4b 100644 --- a/t/op/array.t +++ b/t/op/array.t @@ -21,6 +21,9 @@ is($tmp, 5); is($#ary, 3); is(join('',@ary), '1234'); +{ + no warnings 'deprecated'; + $[ = 1; @ary = (1,2,3,4,5); is(join('',@ary), '12345'); @@ -70,6 +73,8 @@ $bar[2] = '2'; $r = join(',', $#bar, @bar); is($r, "2,0,,2"); +} + $foo = 'now is the time'; ok(scalar (($F1,$F2,$Etc) = ($foo =~ /^(\S+)\s+(\S+)\s*(.*)/))); is($F1, 'now'); @@ -119,7 +124,10 @@ $foo = ('a','b','c','d','e','f')[1]; is($foo, 'b'); @foo = ( 'foo', 'bar', 'burbl'); -push(foo, 'blah'); +{ + no warnings 'deprecated'; + push(foo, 'blah'); +} is($#foo, 3); # various AASSIGN_COMMON checks (see newASSIGNOP() in op.c) @@ -252,6 +260,7 @@ is ($foo[1], "a"); sub tary { + no warnings 'deprecated'; local $[ = 10; my $five = 5; is ($tary[5], $tary[$five]);