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 reply to Re: better way delete comma separated hash values?
by betterworld
in thread better way delete comma separated hash values?
by lamp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |