in reply to Re: Idiom: hashes as sets
in thread Idiom: hashes as sets
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Idiom: hashes as sets
by parv (Parson) on Jul 04, 2008 at 02:38 UTC |