Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: better way delete comma separated hash values?

by betterworld (Curate)
on Sep 29, 2008 at 11:57 UTC ( #714328=note: print w/replies, xml ) Need Help??


in reply to better way delete comma separated hash values?

You could use a hash of arrays.

Your code translates back and forth between lists and comma separated strings. This would be unnessecary if you wouldn't store the data as strings in the first place. Of course, that depends on how the rest of your program uses these values.

  • Comment on Re: better way delete comma separated hash values?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://714328]
help
Chatterbox?
[Your Mother]: The Inquisition? What a show!
[LanX]: which thread are you talking about?
[erix]: great hats
[erix]: the latter-day part of [Answered; thanks.] Can this be explained in layman's terms?
[LanX]: oh I see - a deeply buked discussion

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2017-01-18 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (159 votes). Check out past polls.