Regarding my second question above:
Is it because $ref points to a reference of an array and therefore $ref->[2] would be the third element of that referenced array? Whereas $ref[2] would be the third element of the array @ref which perhaps doesn’t exist in this example?
In reply to Re^3: Multi-Dimensional Arrays and Array References
by Leudwinus
in thread Multi-Dimensional Arrays and Array References
by Leudwinus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |