The ith item of s:
$s[i]
$s[-i]
@s[0 .. x-1]
@s[-x .. -1]
@s[i .. $#s]
@s[i .. j-1]
@s[j .. j+i]
@s[i .. $#s-j] # Alternative: (@s[i .. $#s])[0 .. j-1]
@s[-j .. -j-i] # Alternative: (@s[-j .. -1])[0 .. i-1]
$s[i] # A scalar at index i @s[<something complex>] # An array slice (i.e. multiple values) $#s # The last index of the array s a .. b # In list context, a list of numbers or letters from a to b, inclusive (can be used outside array indexing)