in reply to How do I access an array for which I only have a reference?

You can also use map as the looping mechanism...some may call it map abuse ;) Dereference in the usual fashion.
$arrayref = [0..10]; map {print "$_\n"} @$arrayref;

Replies are listed 'Best First'.
Re: Answer: How do I loop over a reference to an array?
by Wonko the sane (Curate) on Mar 09, 2004 at 19:27 UTC
    Map Abuse Map Abuse!! :)

    IMHO,a map in void context is a sign you should be using a for loop instead.

    print qq{$_\n} for ( @$arrayref );
    Update: Oops, read rest of thread. Apologize for stating the obvious. :P

    Wonko.