in reply to Re^2: Allocation of anonymous arrays
in thread Allocation of anonymous arrays

Oops, I meant:
foreach my $ref (keys %fred) ( $fred{$ref}->[2] = ++$i; )

Replies are listed 'Best First'.
Re^4: Allocation of anonymous arrays
by Anonymous Monk on Feb 07, 2014 at 11:49 UTC
    sure, but you can write  for my $ref ( values %fred ){ $ref->[2] = ++$i; } so that $ref is an actual ref :)