in reply to Re: Effeciency of key-only hash
in thread Effecicncy of key-only hash
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Effeciency of key-only hash
by dreadpiratepeter (Priest) on Aug 24, 2008 at 11:39 UTC | |
by JadeNB (Chaplain) on Aug 24, 2008 at 20:42 UTC | |
by betterworld (Curate) on Aug 24, 2008 at 22:34 UTC | |
by lodin (Hermit) on Aug 25, 2008 at 20:08 UTC | |
by Anonymous Monk on Aug 24, 2008 at 11:41 UTC | |
|
Re^3: Effeciency of key-only hash
by massa (Hermit) on Aug 24, 2008 at 12:57 UTC | |
by kyle (Abbot) on Aug 24, 2008 at 13:05 UTC | |
by massa (Hermit) on Aug 24, 2008 at 19:34 UTC |