It sounds like you just want to change your split() to also split on commas like so:
($key,$value) = split /[=,]/;
In reply to Re: key value pair or simply a regexp
by duff
in thread key value pair or simply a regexp
by mikejones
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |