Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
This is daft, silly and very easy but I can't find the answer anywhere, I feel silly even asking it but how can I turn a reference to an array, back into a nice easy to manage array again?
Thanks,
Tom

Replies are listed 'Best First'.
Re: Dereferencing an array
by Tomte (Priest) on May 13, 2004 at 12:19 UTC

    my @array = @$array_ref;
    see perlref for further information

    regards,
    tomte


    An intellectual is someone whose mind watches itself.
    -- Albert Camus

      ah cool thanks, I knew it was something silly like that.
      Cheers.

Re: Dereferencing an array
by davido (Cardinal) on May 13, 2004 at 16:21 UTC