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' }, ];

In reply to Re^4: Add new data to array by Anonymous Monk
in thread Add new data to array by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.