Perl-Sensitive Sunglasses | |
PerlMonks |
Re: better way delete comma separated hash values?by betterworld (Curate) |
on Sep 29, 2008 at 11:57 UTC ( [id://714328]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|