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

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

Replies are listed 'Best First'.
Re^6: sorting and merging in perl
by Sekhar Reddy (Acolyte) on Aug 08, 2018 at 14:27 UTC

    Thank you Poj,Yes, Your understanding is correct.

      Ok, why are the 200906888 records ignored ? Is it because the following 2 records 200906889 and 3 records 200906890 are not a sequence ?

      poj