in reply to assignment to scalar changing array content

$reference = $ref{$raliashash}; $ralias = ${$reference}[0]; }
$refarrayptr is a reference to an array containing hash keys. $ref is a reference to a hash containing references to anonymous arrays.
Then you'd want $ref->{$raliashash} there.

Replies are listed 'Best First'.
Re^2: assignment to scalar changing array content
by reasonablekeith (Deacon) on Nov 16, 2005 at 10:57 UTC
    This syntax can also be applied to the second line.
    $ralias = ${$reference}[0]; # is the same as ... $ralias = $reference->[0];
    I find the second style much easier to read.
    ---
    my name's not Keith, and I'm not reasonable.