A dirty solution:
($keyword, $value, @opt)= split /\s*[=,]\s*/;It works only if you have no extra = or , in your data.
In reply to Re: Matching a keyword, value and optional comma delimited values
by mirod
in thread Matching a keyword, value and optional comma delimited values
by brainpan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |