Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Deleting hash entry

by tcf22 (Priest)
on Dec 16, 2003 at 15:01 UTC ( #315064=note: print w/ replies, xml ) Need Help??


in reply to Deleting hash entry

I think you meant:

%hash = ( abc => { def => 1, }, ghi => { jkl => 1, }, );
Hashes use (), hash refs use {}.

delete($hash{abc}{def});
should work for deleting a second level key.

- Tom


Comment on Re: Deleting hash entry
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://315064]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-09-20 09:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (157 votes), past polls