I usually do it this way:
my %hash1; @hash1{qw/shave the modern way/}= ();
Even if I don't need the actual counter, I prefer this over++$hash{$the_word_just_read};
$hash{$the_word_just_read}= undef; # or 1 or ''
To be honest: I don't really care for the efficiency of that.
In reply to Re: Effecicncy of key-only hash
by Skeeve
in thread Effecicncy of key-only hash
by brycen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |