in reply to Text::CSV_XS; Type Method

Please provide the data that's giving you a problem

Replies are listed 'Best First'.
Re^2: Text::CSV_XS; Type Method
by drodinthe559 (Monk) on Feb 18, 2010 at 17:28 UTC
    Here's an example:
    11111111,2222222222,5555-6666," 1234"," 123.45" 11111111,3333333333,7777-8888," 5678"," 567.89" 11111111,4444444444,1111-9999," 9123"," 176.47"
    Notice the last two columns have quotes. I'm trying to get rid of that.

      Trim the spaces:

      s/^\s+//, s/\s+\z// for $check_no, $amount;

      By the way, types is only used when parsing, so it does absolutely nothing in your program.

        Thanks. I appreciate the help and not having to trying to get it to work.