Map to the rescue!
my %items = map {$_ => 1} qw (one two three);
I'm still fairly new to map, so I'm kinda happy that I found that one on my own... Take note, fellow acolytes! :)
++jsegal
In reply to Re: Re: Set Operators
by Notromda
in thread Set Operators
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |