Learned Ones,
I'm sure this is fairly simple, but I'd really appreciate
some help. I've got a csv file that contains data in this format.
249+69,775.83 249+67,775.93 249+65,776.11
I need to put the 1st value into an array of its own,
without the "+" sign, and the 2nd value into its array.
Thank you to all those who help me with this bit coding.
From the posts, it seems that my query was slighly obscure.
What I'm looking to do is take the before-mentioned file
and read the data into two arrays so that one array
contains
24969 24967 24965
whilst the other contains
775.83 775.93 776.11
There will be about 400 records total.
If it seems like I'm asking without due diligence, it is
only because I'm offshore at the moment, 6 weeks now,
sans books and high speed connection.
Again, sincere thanks for all the help and guidance.

In reply to Read from file to two arrays. by Offshore_Worker

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.