The stupid question is the question not asked | |
PerlMonks |
Re: list of lists?by Fletch (Bishop) |
on Jul 29, 2021 at 04:12 UTC ( [id://11135458]=note: print w/replies, xml ) | Need Help?? |
Your extra parens don't do anything (as far as preserving structure) and you wind up with everything flattened out in one big array. You need a list of arrayrefs to initialize your array in order to keep your sub-lists distinct. See perllol and perldsc as well as perlreftut if you need the basics on references.
The cake is a lie.
In Section
Seekers of Perl Wisdom
|
|