develooper Front page | perl.beginners | Postings from March 2002

extracting elements from arrays of arrays of arrays ;-)

Thread Next
From:
Simon K. Chan
Date:
March 13, 2002 18:38
Subject:
extracting elements from arrays of arrays of arrays ;-)
Message ID:
20020314023807.73745.qmail@web11902.mail.yahoo.com
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.

Thank many thanks for your time and help!





=====
#########################################

Warmest Regards,
Simon K. Chan - perl_programmer2001@yahoo.com

"Great spirits have always encountered violent opposition from mediocre minds."  - Albert Einstein

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About