[prev] [index] [next]

Arrays (Lists) (cont)

Other useful operations on arrays:

@b = sort(@a)   returns sorted version of @a
@b = reverse(@a)   returns reversed version of @a
shift(@a)   like pop(@a), but from left-hand end
unshift(@a,x)   like push(@a,x), but at left-hand end