push @splitted, $1 while $str =~ /([^=]+=[^=]+)/g; #### my @temp = split(/=/, $str); push @splitted, join("=", splice(@temp,0,2)) while @s;