in reply to Matching a keyword, value and optional comma delimited values
$_="keyword=value,option1,option2,option3"; s{^(\w+) \s*=\s* (.+)$ } { @a=split(',',$2) }ex [download]
You now have the keyword in $1, and the values in the array @a