No, perl's arrays handle stack and queue operations, but not iteration
in general. With an array you can iterate over the whole thing at
once with
for but be careful about inserting or deleting
elements while doing so. For anything more complex you have to
maintain an index variable. There is
Tie::Array::Iterable,
but that still doesn't give you all the niceties of next(), prev(),
first(), and last().