?
Solved

list of list

Posted on 2000-04-17
5
Medium Priority
?
129 Views
Last Modified: 2010-03-05
how to maintain a list of list?
says,
  @a = (1,2,3);
  @b = (4,5);

  can @all = (@a, @b) such that
  @all[0] = (1,2,3) and @all[1] = (4,5)??
0
Comment
Question by:agnesko
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 16

Accepted Solution

by:
maneshr earned 200 total points
ID: 2724153
this might be what you are looking for...

#!/usr/local/bin/perl

@a = (1,2,3);
@b = (4,5);

print @a,"\n"; ## print the array

## Store the reference to those arrays in another array or the master array!!
@all = (\@a, \@b);

## Print the array whose reference is stored in the 0th element of the master array.
print @{$all[0]},"\n";
0
 

Author Comment

by:agnesko
ID: 2724154
This question has a deletion request Pending
0
 
LVL 16

Expert Comment

by:maneshr
ID: 2724172
This question no longer is pending deletion
0
 
LVL 16

Expert Comment

by:maneshr
ID: 2724173
agnesko,

did you get your solution?? why have you delete this question?

pl. let me know.

Thanks
0
 
LVL 84

Expert Comment

by:ozo
ID: 2724835
perldoc perllol
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question