If I do that, i have to put the line into the loop aswell:

push (@columns_import, \%column_data_import);

this results in a data structure with wrong data in it, as you can see in the Dumper result here:

{ 'IMPORT_VALUE' => '1', 'BGCOLOR_CUSTOMER' => 0, 'SCHEDULE_ROWS' => [ { 'SCHEDULE_COLUMNS_EXPORT' => [ { 'S +CHEDULE' => '20:00', 'U +NDEF' => 1 }, { 'L +INK' => 'CUSTOMERA_DOMAINA_27.07.2015_20_EXPORT.html', 'O +K' => 1, 'S +CHEDULE' => '20:00', 'U +NDEF' => 0 }, { 'L +INK' => 'CUSTOMERA_DOMAINA_26.07.2015_20_EXPORT.html', 'O +K' => 1, 'S +CHEDULE' => '20:00', 'U +NDEF' => 0 }, { 'L +INK' => CUSTOMERA_DOMAINA_25.07.2015_20_EXPORT.html', 'O +K' => 1, 'S +CHEDULE' => '20:00', 'U +NDEF' => 0 }, { 'S +CHEDULE' => '20:00', 'U +NDEF' => 1 }, { 'S +CHEDULE' => '20:00', 'U +NDEF' => 1 }, { 'S +CHEDULE' => '20:00', 'U +NDEF' => 1 } ] }, { 'SCHEDULE_COLUMNS_IMPORT' => [ { 'S +CHEDULE' => '23:21', 'U +NDEF' => 1 }, {}, {}, { 'S +CHEDULE' => '23:42', 'U +NDEF' => 1 }, {}, { 'S +CHEDULE' => '23:21', 'U +NDEF' => 1 }, {}, {}, { 'S +CHEDULE' => '23:42', 'U +NDEF' => 1 }, {}, { 'S +CHEDULE' => '23:21', 'U +NDEF' => 1 }, {}, {}, { 'S +CHEDULE' => '23:42', 'U +NDEF' => 1 }, {}, { 'S +CHEDULE' => '23:21', 'U +NDEF' => 1 }, {}, {}, { 'S +CHEDULE' => '23:42', 'U +NDEF' => 1 }, {}, { 'S +CHEDULE' => '23:21', 'U +NDEF' => 1 }, {}, {}, { 'S +CHEDULE' => '23:42', 'U +NDEF' => 1 }, {}, { 'S +CHEDULE' => '23:21', 'U +NDEF' => 1 }, {}, {}, { 'S +CHEDULE' => '23:42', 'U +NDEF' => 1 }, {}, { 'S +CHEDULE' => '23:21', 'U +NDEF' => 1 }, {}, {}, { 'S +CHEDULE' => '23:42', 'U +NDEF' => 1 }, {} ] } ], 'EXPORT_VALUE' => '1', 'DOMAIN' => 'DOMAINA', 'CUSTOMER' => 'CUSTOMERA' },

In reply to Re^4: Overwriting Hash / Array by iRemix94
in thread Overwriting Hash / Array by iRemix94

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.