Arrays and Hashes
Common Hash Functions: Delete
The
delete
function removes an entry from the hash table (associative array).
A hash table entry to be deleted is identified (as usual) by its key.
Example:
# Delete the entry in hash "theHash" with key "deathKey" delete($theHash{"deathKey"});
Back to Syllabus
Previous: Common Hash Functions: Each
Next: Hash Slices