in reply to Read from file to two arrays.

Welcome to the Monastery!

What have you tried? The Monks here usually like to see a good faith effort*, even if the code fails horribly. :-) The following might help to get you started:

  1. use strict and warnings
  2. declare two arrays (my)
  3. open the input file
  4. read a line from the input file (see "I/O Operators" in perlop
  5. remove the newline from each line (chomp)
  6. split the line on the comma
  7. push the values from the line onto the appropriate array (I'm not sure what you meant by 'without the "+" sign'... replace it with something else or remove it entirely?)

Give it a try, and feel free to come back when you get stuck.

*Chances are, though, that another Monk will give you a fully working solution that you can use almost as-is. If you use it, take the time to learn how it works - you'll benefit from it more in the long run.