I am not sure why yall are jumping my ass over this.

Sorry, but my initial comment was two brief sentences, and your response was much longer and you seemed to object, so I explained where I was coming from.

In other words, the data put up in the OP was spoof data, to show us what their file is like.

Unfortunately, I've seen it happen too many times that a wisdom seeker will forget some aspect of their input file format, someone will write some code for the sample data, and the OP will come back with "oh wait, actually this doesn't work for my real data, because my real data actually looks like this ...".

it /could/ corrupt their data set, but as long as it stayed like that then the code i posted would work for the original format

When you put it like that, it is clearer, thanks.

I mentioned the edit because significant unmarked edits mean I can't be certain whether other parts of the post might have been edited too, and so it's harder to go back and double-check whether I maybe overlooked or misunderstood something. Thanks for marking the edits.


In reply to Re^10: Sort alphabetically from file by haukex
in thread Sort alphabetically from file by edujs7

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.