undef(@hash{qw(shave the modern way)});Do @hash{qw(shave the modern way)}=(); instead. It's arguably a bug that the former creates the shave, the, and modern keys if they don't exist. Note that it does not set their values to undef if they do already exist.
In reply to Re^2: Effecicncy of key-only hash
by ysth
in thread Effecicncy of key-only hash
by brycen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |