Hi and thanks for your answer, it's the one I think I understand the most, but it's very kind that you all took the time and tried to help. I'll also try to understand the other two answers hopefully.

I wasn't successful implementing this but I'm wondering if it has to do with the fact that I haven't really given you a clear picture of what my data looks like, so this file looks like this - this is probably a pretty silly way to show you but here's a link to a screenshot of my data https://www.dropbox.com/s/68xjbspn47jzmx9/Untitled.png?dl=0 , sorry I know this is really random but I have no clue how to properly format the numbers so that you can see.

As you can see I have 4 columns, the last one is always 1 digit and the rest always have 3 decimal digits. Can your solution (with some editing) still be implemented on my data?


In reply to Re^2: problem with splitting file on whitespace: how to circumvent inconsistent formatting through file by angela2
in thread problem with splitting file on whitespace: how to circumvent inconsistent formatting through file by angela2

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.