On Fri, 7 Dec 2001, Tomasi, Chuck wrote:

> I've got hash and I want to completely remove one or more entries from the
> list.  I tried undef, but that removes the value and not the key.
>
> %list = (
>       first   => 1,
>       second => 2,
>       third => 3
> )
>
> How can I remove $list{second} completely so the following loop only reports
> first and third?

perldoc -f delete

-- Brett
                                          http://www.chapelperilous.net/
------------------------------------------------------------------------
You may call me by my name, Wirth, or by my value, Worth.
- Nicklaus Wirth


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to