I agree, and note what this means for inserting a list:
my %set; @set{qw(I agree)} = (); print sort keys %set; # Iagree
Just didn't want you to say
@set{@list} = (undef) x scalar @list;even though that would work.
In reply to Re^2: Idiom: hashes as sets
by Narveson
in thread Idiom: hashes as sets
by vrk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |