Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi there Monks!
I need to add the values from $listA to @listB, I am later sending @listB as json to another program. What is the best way of doing this? Here is a sample code to show what I am trying to do:
I need to add the values from $listA to @listB, I am later sending @listB as json to another program. What is the best way of doing this? Here is a sample code to show what I am trying to do:
Thanks for the help!100 MAINSTCONNECTOR PARK... use Data::Dumper; ... my $listA; $VAR1 = [ { 'ZIP' => '01111', 'CITY' => 'New York, NY', 'STREET_NAME_1' => 'CONNECTOR PARK', 'STREET_NAME_2' => '100 MAINST' } ]; my @listB; $VAR1 = { 'account' => '73240', 'name' => 'G Church CO' }; $VAR2 = { 'account' => '73240', 'name' => 'A Church CO' }; $VAR3 = { 'account' => '73240', 'name' => 'B Church CO' }; $VAR4 = { 'account' => '73240', 'name' => 'C Church CO' }; $VAR5 = { 'account' => '73240', 'name' => 'D Church CO' }; $VAR6 = { 'account' => '73240', 'name' => 'E Church CO' };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Combining data help!
by kennethk (Abbot) on Mar 06, 2013 at 16:54 UTC | |
by Anonymous Monk on Mar 06, 2013 at 17:16 UTC | |
by kennethk (Abbot) on Mar 06, 2013 at 17:59 UTC | |
Re: Combining data help!
by CountZero (Bishop) on Mar 06, 2013 at 16:52 UTC | |
Re: Combining data help!
by tmharish (Friar) on Mar 06, 2013 at 16:58 UTC | |
by Anonymous Monk on Mar 06, 2013 at 17:52 UTC | |
by tmharish (Friar) on Mar 07, 2013 at 06:33 UTC |
Back to
Seekers of Perl Wisdom