##
say Dumper(\%{ {map { $_ => 'fish' } qw(one two red blue)} } );
^ ^ ^ ^
|-|-----------------------------------------|-|
####
$VAR1 = {
'blue' => 'fish',
'one' => 'fish',
'red' => 'fish',
'two' => 'fish'
};
####
Ambiguous use of %{map{...}} resolved to %map{...}
####
$VAR1 = [
'one',
'fish',
'two',
'fish',
'red',
'fish',
'blue',
'fish'
];
####
say Dumper(\@{ {map { $_ => 'fish' } qw(one two red blue)} } );
####
Not an ARRAY reference