Perl 6 tries to flatten lists. This:
holli
You can lead your users to water, but alas, you cannot drown them.
is not what you might think it is, as single element lists get flattened. To get what you mean you must writemy $a = [[["hello"]]]; #not a 3d array!, same as: ["hello"]
Note the trailing comma. See also 2015 The Year of The Great List Refactor.my $a = [[["hello"],],]; #now it is!
holli
You can lead your users to water, but alas, you cannot drown them.
Back to
Meditations