in reply to Matching a keyword, value and optional comma delimited values

A dirty solution:

($keyword, $value, @opt)= split /\s*[=,]\s*/;

It works only if you have no extra = or , in your data.