Indeed, this was the case I had in mind. I guess it comes down to which is more readable,
my %items = map {$_ => 1} qw (one two three);
or:
my %hash; @hash{qw(one two three)} = ();
I'm still not clear on why that last one works...
In reply to Re: Re^6: Set Operators
by Notromda
in thread Set Operators
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |