in reply to How can I Compute address of elements of Multidimensional Array

Perl doesn't let you compute the "address of" anything, really. Even a scalar needn't live in a contiguous block of memory. You're probably thinking of references... And that gives you your answer: just bung a quick `<samp>\</samp>' on the element you want to access:

@x = (1,2,3); @y = (4,5,6); $x = [\@x, \@y]; $r = \$x->[1][2]; $$r = 8;

  • Comment on Re: How can I Compute address of elements of Multidimensional Array
  • Download Code