in reply to Re^8: Passing argument by reference (for a scalar)(Unary Plus)
in thread Passing argument by reference (for a scalar)
my %hash = map { "a$_" => undef } @list; # syntax error at ... line +1, near "} @list" my %hash = map {; "a$_" => undef } @list; # OK.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Passing argument by reference (for a scalar)(Unary Plus)
by LanX (Saint) on Sep 11, 2024 at 15:13 UTC |