gem555 has asked for the wisdom of the Perl Monks concerning the following question:
The coresponding key and value is printed. How to change the array to hash.for my $data_pair (@data_list) { print "$data_pair->{'key'},$data_pair->{'value'}\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Array to hash converstion
by NetWallah (Canon) on Jul 15, 2009 at 05:02 UTC | |
by AnomalousMonk (Archbishop) on Jul 15, 2009 at 06:13 UTC | |
Re: Array to hash converstion
by ELISHEVA (Prior) on Jul 15, 2009 at 06:19 UTC | |
Re: Array to hash converstion
by Marshall (Canon) on Jul 15, 2009 at 05:21 UTC | |
by NetWallah (Canon) on Jul 15, 2009 at 05:26 UTC | |
by Marshall (Canon) on Jul 15, 2009 at 05:57 UTC | |
Re: Array to hash converstion
by quester (Vicar) on Jul 15, 2009 at 05:01 UTC | |
by davorg (Chancellor) on Jul 15, 2009 at 09:15 UTC | |
by gem555 (Acolyte) on Jul 15, 2009 at 05:14 UTC | |
by spazm (Monk) on Jul 15, 2009 at 06:23 UTC | |
by gem555 (Acolyte) on Jul 15, 2009 at 07:03 UTC | |
by dsheroh (Monsignor) on Jul 15, 2009 at 09:41 UTC | |
| |
by gem555 (Acolyte) on Jul 16, 2009 at 10:40 UTC |