in reply to Re^2: Error with doublequotes in map
in thread Error with doublequotes in map
The standard ways to help Perl interpret expression (hash ref) vs. block correctly, is like this:
map +{ "$_" => 1 }, @list # + => expression (hash ref) (+ comma) map {; "$_" => 1 } @list # ; => block (no comma)
|
|---|