Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Text::CSV_XS; Type Method

by ikegami (Patriarch)
on Feb 18, 2010 at 17:03 UTC ( [id://823978]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://823978]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-25 16:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found