in reply to Re^2: sorting and merging in perl
in thread sorting and merging in perl

Is this a new requirement or just an addition scenario to the original post sorting and merging in perl ?

poj

Replies are listed 'Best First'.
Re^4: sorting and merging in perl
by Sekhar Reddy (Acolyte) on Jul 30, 2018 at 15:45 UTC

    Its an additional scenario to the main requirement, I thought this additional scenario may not be done and hence i am looking for new has to store this result</p

      I'm struggling to understand the logic here. In the original post you have records

      7900724677,200906871,20180101,20180228
      7900724677,200906872,20180301,20180330
      7900724677,200906873,20180401,20180420
      

      creating the record

      7900724677,200906871:200906873,20180101,20180420

      but also you now want these records

      7900724655,200906888,20180416,20180522
      7900724655,200906889,20180601,20180720
      7900724655,200906889,20180724,20180728
      7900724655,200906888,20180730,20180830
      7900724655,200906890,20180905,20180930
      7900724655,200906890,20181005,20181030
      7900724655,200906890,20181104,
      

      to create 2 records

      7900724655,200906889,20180601,20180728
      7900724655,200906890,20180905,
      

      Is that correct ?

      poj

        Thank you Poj,Yes, Your understanding is correct.