Aaaaah. I get it.
So this is how to get the array:
say Dumper(\@{ [map { $_ => 'fish' } qw(one two red blue)] } );
I had tried
after having half convinced my self the inner braces were a code block, but of course that didn't work either ...say Dumper(\@[ {map { $_ => 'fish' } qw(one two red blue)} ] );
Thank you very much.
Thanks,
cbeckley
In reply to Re^2: Syntax for casting map to a hash or an array
by cbeckley
in thread Syntax for casting map to a hash or an array
by cbeckley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |