Message-ID: <
20010406181014.A18803@puffinry.freeserve.co.uk>
p4raw-id: //depot/perl@9614
pop->op_next->op_type == OP_AELEM &&
!(pop->op_next->op_private &
(OPpLVAL_INTRO|OPpLVAL_DEFER|OPpDEREF|OPpMAYBE_LVSUB)) &&
- (i = SvIV(((SVOP*)pop)->op_sv) - PL_compiling.cop_arybase)
+ (i = SvIV(((SVOP*)pop)->op_sv) - PL_curcop->cop_arybase)
<= 255 &&
i >= 0)
{
@foo=(foo())[0,0];
$foo[1] eq "a" or print "not ";
print "ok 71\n";
+
+# $[ should have the same effect regardless of whether the aelem
+# op is optimized to aelemfast.
+
+sub tary {
+ local $[ = 10;
+ my $five = 5;
+ print "not " unless $tary[5] == $tary[$five];
+ print "ok 72\n";
+}
+
+@tary = (0..50);
+tary();