Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have two newbie questions regarding LOLs.
If I have a list of lists, such as @LOL={{1,2,3},{4,5,6},{2,3,4}}, how do I look up, say, the second element in the second list?
Can I do $variable=$$LOL[2][2]?
My other question is how to I sort the lists according to the first element in each list?
Any help will be much appreciated.
Thanks,
C
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: list of lists (LOL)
by davido (Cardinal) on May 05, 2004 at 18:46 UTC | |
|
Re: list of lists (LOL)
by geekgrrl (Pilgrim) on May 05, 2004 at 18:37 UTC | |
|
Re: list of lists (LOL)
by nevyn (Monk) on May 05, 2004 at 18:46 UTC | |
|
Re: list of lists (LOL)
by geekgrrl (Pilgrim) on May 05, 2004 at 18:46 UTC |