Dies schlägt fehl:Warum kompiliert diese map-Anweisung in Perl nicht?
my @a = ("a", "b", "c", "d", "e");
my %h = map { "prefix-$_" => 1 } @a;
mit diesem Fehler:
Not enough arguments for map at foo.pl line 4, near "} @a"
aber dies funktioniert:
my @a = ("a", "b", "c", "d", "e");
my %h = map { "prefix-" . $_ => 1 } @a;
warum?