Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Transforming hash (removing useless key)

by olivierp (Hermit)
on Jan 28, 2005 at 21:12 UTC ( #426114=note: print w/ replies, xml ) Need Help??


in reply to Transforming hash (removing useless key)

As you mention you will be only returning a single key, how about:

$data = delete $data->{ (keys(%$data))[0] };
HTH
--
Olivier


Comment on Re: Transforming hash (removing useless key)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-07-25 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls