At 06:38 PM 3/13/02 -0800, Simon K. Chan wrote:
>Hiya All,
>
>I hope you'll forgive this oo perl rookie for asking a routine 
>question.  I'm not new to perl, but
>the bioperl module I'm working on is giving me a headache! ;-)
>
>
>Let's say I have this:
>
>my @array = qw(12 56 41 23);
>
>my $array_ref = \@array;
>
># where $var1, $var2, and $var3 are other array references.
>my $ref = [$var1, $var2, $array_ref, $var3 ];
>
>my @object = ();
>
>push @object, $ref;
>
>QUESTION:  How do I obtain the array $array_ref refers to in this 
>situtation?  Let's say I want to
>give @new the values in @array.

my @new = @{$object[0][2]};


--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to