You are correct when you asked about the other data set, since in reality the data is with much more data as in this small code sample, but just like your previous observation:
my $data =[
{ Ad1 => '20 SOUTH CENTRAL #B3', status => 'Main', City => 'NY
+', zCode => '0002', name => 'John D', ID => '2222', state => 'TO'
+ },
{ Ad1 => '15 SOUTH CENTRAL #B4', status => 'Property', City => 'NY
+', zCode => '0002', name => 'John V', ID => '2222', state => 'TO'
+ },
{ Ad1 => '100 main St.', status => 'Houses', City => 'BO
+', zCode => '0007', name => 'Mary Due', ID => '2222', state => 'TO'
+ },
{ Ad1 => '5540 Chelsea Avenue', status => 'Cabin', City => 'NE
+', zCode => '4562', name => 'Carly Simon',ID => '2222', state => 'TO'
+ },
{ Ad1 => '12th Street', status => 'Main', City => 'NM
+', zCode => '2334', name => 'Charles D', ID => '1111', state => 'CA'
+ },
{ Ad1 => '44 Dell St', status => 'Houses', City => 'MA
+', zCode => '9857', name => 'Marie Doe', ID => '1111', state => 'CA'
+ },
{ Ad1 => '33 Dust Road', status => 'Property', City => 'ET
+', zCode => '3345', name => 'Chapim Thor',ID => '1111', state => 'CA'
+ },
{ Ad1 => '01 Charles St', status => 'Cabin', City => 'CA
+', zCode => '2334', name => 'Claud Odur', ID => '1111', state => 'CA'
+ },
];
Now the results are confused:
$VAR1 = [
{
'new_City' => 'MA', # Should be BO
'ID' => '2222',
'status' => 'Main',
'name' => 'John D',
'City' => 'NY',
'new_aA1' => '44 Dell St', # Should be 100 main St.
'state' => 'TO',
'new_zCode' => '9857', # Should be 0007
'Ad1' => '20 SOUTH CENTRAL #B3',
'new_name' => 'Marie Doe', # SHould be Mary Due
'zCode' => '0002'
},
{
'new_City' => 'MA',
'ID' => '1111',
'status' => 'Main',
'name' => 'Charles D',
'City' => 'NM',
'new_aA1' => '44 Dell St',
'state' => 'CA',
'new_zCode' => '9857',
'Ad1' => '12th Street',
'new_name' => 'Marie Doe',
'zCode' => '2334'
},
];
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.