It is a well-known limitation of the perl parser.
It decides that this: map { ... => ... } ... is a map returning a hashref; and then the absence of a comma means if doesn't have enough arguments.
Fix it by giving it a hint that the curlies are a code block like this: map {; "x" => $y } qw(1 2 3);
In reply to Re: map syntax error -- weird
by BrowserUk
in thread map syntax error -- weird
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |