in reply to Array of Array Row Reference

Using the code you have, this snippet will print the fourth column from the second row:
print $matrix[1]->[3], "\n";

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re: (jeffa) Re: Array of Array Row Reference
by Juerd (Abbot) on Mar 04, 2002 at 14:46 UTC

    Using the code you have, this snippet will print the fourth column from the second row: print $matrix[1]->[3], "\n";

    Which can also be written as print $matrix[1][3], which is more multi-dimensional-array-like.

    ++ vs lbh qrpbqrq guvf hfvat n ge va Crey :)
    Nabgure bar vs lbh qvq fb jvgubhg ernqvat n znahny svefg.
    -- vs lbh hfrq OFQ pnrfne ;)
        - Whreq