# Test: perl6 ch1.p6 use v6.d; sub MAIN() { my @arrays = ( , <2 4 0 3 2 0 1 9>, , ); my $max = @arrays.sort({$^b.elems <=> $^a.elems}) .first .elems; for (0 .. $max - 1) ->$i { say @arrays.map({$_[$i] // ' '}) .join(" "); } }