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