Without the +, Perl would think you wanted to call map with 2 args, not over @list.my %hash = map +($_=>undef), @list;
In reply to Re^7: Passing argument by reference (for a scalar)
by etj
in thread Passing argument by reference (for a scalar)
by jmClifford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |