Skip to the content
Documentation

Array access syntax

No ratings yet

This does not tell me how to access an element in an array/hash. What is the equivalent syntax for $my_array[1], $my_array[1][2], $my_array['key']
My guess is $my_array.1, $my_array.1.2, $my_array.key

Comments (1 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Re: Array access syntax

    Alex Farran ·

    Turns out the answer is in the next chapter.