What's the easiest way to flatten a multidimensional array ?
One level of flattening using map
$ref = [[1,2,3,4],[5,6,7,8]]; # AoA @a = map {@$_} @$ref; # flattens it print "@a"; # 1 2 3 4 5 6 7 8
1.4m articles
1.4m replys
5 comments
57.0k users