http://www.perlmonks.org?node_id=479035

jaa has asked for the wisdom of the Perl Monks concerning the following question:

I have "name=value,..." strings that I convert to hashes like this:
my ( %hash ) = split /\s*[=,]\s*/, "apples=green,pears=brown,oranges +=orange";
Do the Monks have any elegant solutions for the inverse? I.e. converting %hash back into the original string?

Thanks in advance!

Regards,

Jeff