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

Divide and conquer:
my ($keyword, $values) = m/^(\w+)\s*=\s*(.*)$/;
my @values = split(/,\s*/, $values);
  • Comment on Re: Matching a keyword, value and optional comma delimited values