Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Hi Athanasius,

First of all thank you very much for your try. I tried with your code, but still that is also giving some incorrect results. Below fyi.

Input data that i have considered below

7900724666,200906888,20180416,20180522 7900724666,200906888,20180601,20180720 7900724666,200906888,20180406,20180411 7900724677,200906872,20180301,20180330 7900724677,200906871,20180101,20180228 7900724677,200906873,20180401,20180420 7900724688,200906881,20180101,20180228 7900724688,200906881,20180303,20180330 7900724688,200906882,20180404,20180430 7900724688,200906883,20180508,20180620 7900724699,200906891,20180101,20180228 7900724699,200906891,20180303,20180330 7900724699,200906892,20180404,20180430 7900724699,200906893,20180508, 7900724611,200906888,20180416,20180522 7900724611,200906889,20180724,20180728 7900724611,200906889,20180601,20180720 7900724611,200906888,20180730,20180830 7900724611,200906890,20180905,20180930 7900724611,200906890,20181005,20181030 7900724611,200906890,20181104, 7900724622,200906868,20180416,20180522 7900724622,200906869,20180601,20180720 7900724622,200906869,20180724,20180728 7900724622,200906868,20180730,20180830 7900724622,200906890,20180905,20180930 7900724622,200906890,20181005,20181030 7900724622,200906890,20181104,

The output which i have got is below

7900724666,200906888,20180416,20180411 7900724688,200906881,20180101,20180330 7900724699,200906891,20180101,20180330 7900724611,200906889,20180724,20180720 7900724611,200906890,20180905, 7900724622,200906869,20180601,20180728 7900724622,200906890,20180905,

Here 1st line and 4th line in output are incorrect: Ex:

7900724611,200906889,20180724,20180720

Here expected result in output 4th line is 7900724611,200906889,20180601,20180728


In reply to Re^6: sorting and merging in perl by Sekhar Reddy
in thread sorting and merging in perl by Sekhar Reddy

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



  • 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.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found