is($#ary, 3);
is(join('',@ary), '1234');
+{
+ no warnings 'deprecated';
+
$[ = 1;
@ary = (1,2,3,4,5);
is(join('',@ary), '12345');
$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');
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)
sub tary {
+ no warnings 'deprecated';
local $[ = 10;
my $five = 5;
is ($tary[5], $tary[$five]);