faqts : Computers : Programming : Languages : Perl : Common Problems : Hashes

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

44 of 44 people (100%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

How do I remove an element/key from a hash?

Jun 16th, 2001 10:56
Per M Knutsen,


The delete function will remove a key from a hash.
delete $hash{key};   # Removes key and its associated value