Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: how to use "delete" with a hash of hash

by Rahul6990 (Beadle)
on Jan 29, 2013 at 06:53 UTC ( #1015808=note: print w/ replies, xml ) Need Help??

in reply to how to use "delete" with a hash of hash

The code posted by muba is working correctly. I don't know what is the problem with your code. You can use his.

Comment on Re: how to use "delete" with a hash of hash
Replies are listed 'Best First'.
Re^2: how to use "delete" with a hash of hash
by brassbin (Novice) on Jan 29, 2013 at 14:05 UTC

    thanks for pointing that out, i think i know now where the problem is

    i was using a simplified code snippet to highlight the top-level key deletion question, the actual code is a bit more complicated, the variable that holds the top-level key is the result of a regular expression match, and i yet again underestimated the greediness of the .* construct

    thanks again for pointing out the useful of "warnings" & "diagnostics" pragmas, and your help on the usage of the "delete" function in the HoH context, thank you all

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2016-02-12 13:29 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (397 votes), past polls