works, howeveruse strict; my %x = map { $_ => 1 } qw(a b c);
does not compile ("not enough arguments for map").use strict; my %y = map { "prefix_$_" => 1 } qw(a b c);
Is this a bug or am I being stupid?
In reply to map problem by morgon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |