in reply to Parsing attributes in one line using map
split /=/ [download]
split /=/, $_, 2 [download]
But what if any of the values contains ',' or '='?
my %attrs = $attr =~ /([^=,]+)=(.*?)(?:(?=,[^=,]+=)|$)/g; [download]