in reply to Re: Effecicncy of key-only hash
in thread Effecicncy of key-only hash
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Effecicncy of key-only hash
by tilly (Archbishop) on Aug 24, 2008 at 22:35 UTC | |
by ysth (Canon) on Aug 24, 2008 at 23:28 UTC | |
by massa (Hermit) on Aug 25, 2008 at 11:39 UTC | |
by ysth (Canon) on Aug 25, 2008 at 13:17 UTC | |
by brycen (Monk) on Aug 25, 2008 at 06:26 UTC | |
by massa (Hermit) on Aug 25, 2008 at 11:38 UTC |