I agree that it's more comfortable to omit the "exists". However if you want to work with hash slices, it's not that easy to use "1"s.
tilly's code:
undef(@hash{qw(shave the modern way)});
would have to be written like this:
@hash{qw(shave the modern way)} = (1) x 4; # cumbersome
In reply to Re^2: Effeciency of key-only hash
by betterworld
in thread Effecicncy of key-only hash
by brycen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |