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:
Do the Monks have any elegant solutions for the inverse? I.e. converting %hash back into the original string?my ( %hash ) = split /\s*[=,]\s*/, "apples=green,pears=brown,oranges +=orange";
Thanks in advance!
Regards,
Jeff
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I turn a hash into a name=value string?
by JediWizard (Deacon) on Jul 28, 2005 at 16:48 UTC | |
Re: How do I turn a hash into a name=value string?
by Fang (Pilgrim) on Jul 28, 2005 at 17:01 UTC | |
Re: How do I turn a hash into a name=value string?
by sh1tn (Priest) on Jul 28, 2005 at 17:23 UTC | |
by jaa (Friar) on Jul 29, 2005 at 08:55 UTC | |
Re: How do I turn a hash into a name=value string?
by bangers (Pilgrim) on Jul 28, 2005 at 16:49 UTC | |
by JediWizard (Deacon) on Jul 28, 2005 at 17:05 UTC | |
by bangers (Pilgrim) on Jul 29, 2005 at 08:30 UTC | |
Re: How do I turn a hash into a name=value string?
by jaa (Friar) on Jul 29, 2005 at 09:26 UTC |
Back to
Seekers of Perl Wisdom