On 2/9/2014 3:58 PM, Shawn H Corey wrote:
On Sun, 09 Feb 2014 10:48:46 -0600
Bill McCormick <wpmccorm...@gmail.com> wrote:
Trying to map the array list into a hash, but loose the double quotes
surrounding the key's value.
You can convert a list to a hash directly:
my %hash = qw( foo1 bar1 foo2 bar2 );
Sure, but that doesn't strip the " and = from this:
my @hash = qw(foo1="bar1" foo2="bar2");
maybe something with a regexp like s/"|=//g?
seems like Perl would have some uber simple way to convert a list of
key="value" elements to a hash.
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/