Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: delete element in Hash of array

by doubledecker (Scribe)
on May 23, 2011 at 11:57 UTC ( #906282=note: print w/ replies, xml ) Need Help??


in reply to Re: delete element in Hash of array
in thread delete element in Hash of array

Assuming if you know the key you want to delete..

delete $hash{$key};


Comment on Re^2: delete element in Hash of array
Download Code
Re^3: delete element in Hash of array
by LanX (Canon) on May 23, 2011 at 12:04 UTC
    Unfortunately the question is so poorly phrased, that nobody can tell in which nesting level an element should be deleted.

    You're answering another question than jethro did.

    Cheers Rolf

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (13)
As of 2015-07-01 21:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (22 votes), past polls