in reply to Dereferencing of data

@array2 = @{$arrayref};

This will copy the referenced array into a new array. Usually when we speak of dereferencing, we mean using a reference directly (e.g. $arrayref->[2]). That aside, this will give you a "real" array from a reference, with the caveat that it will be making a copy, and might potentially be very expensive. I really recommend just using the reference directly.

Replies are listed 'Best First'.
Re: Re: Dereferencing of data
by ChrisR (Hermit) on Oct 09, 2003 at 17:38 UTC
    Thanks for the clarification on the terminology.

    Is there a term for what I am trying to do other than stupid, unwise, costly, etc?