eyepopslikeamosquito has asked for the wisdom of the Perl Monks concerning the following question:
Though I'm too embarassed to ask such a simple question on p6l, I couldn't find any Perl 6 list of lists example code. :-( ... So dear monks, how should I write the perl 5 code below in perl 6?
my @z = ( [ 'a1', 'a2' ], [ 'b1', 'b2', 'b3' ] ); for my $r (@z) { print "@$r\n" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl 6 list of lists example code sought
by stvn (Monsignor) on Apr 06, 2005 at 15:21 UTC | |
|
Re: perl 6 list of lists example code sought
by tlm (Prior) on Apr 06, 2005 at 14:31 UTC | |
by dragonchild (Archbishop) on Apr 06, 2005 at 14:52 UTC | |
by tlm (Prior) on Apr 06, 2005 at 18:58 UTC |