my ( %hash ) = split /\s*[=,]\s*/, "apples=green,pears=brown,oranges=orange";