tachekent has asked for the wisdom of the Perl Monks concerning the following question:
If I have a lists of lists, how do I copy one of the sub-lists into a new list?
I tried @newlist = $LoL[$n], but that always seems to evaluate $LoL$n in scalar context.
confused...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: extracting a list from a lists of lists
by gjb (Vicar) on Jan 02, 2003 at 00:20 UTC | |
|
Re: extracting a list from a lists of lists
by tadman (Prior) on Jan 02, 2003 at 01:08 UTC |