in reply to Re^6: Passing argument by reference (for a scalar)
in thread Passing argument by reference (for a scalar)
Without the +, Perl would think you wanted to call map with 2 args, not over @list.my %hash = map +($_=>undef), @list;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Passing argument by reference (for a scalar)(Unary Plus)
by LanX (Saint) on Sep 11, 2024 at 10:50 UTC | |
by choroba (Cardinal) on Sep 11, 2024 at 11:35 UTC | |
by LanX (Saint) on Sep 11, 2024 at 15:13 UTC | |
by etj (Priest) on Sep 11, 2024 at 14:38 UTC | |
by LanX (Saint) on Sep 11, 2024 at 15:00 UTC |