CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
technically assistance with csv needed

 



trey5498
Novice

Mar 5, 2008, 11:48 AM

Post #1 of 4 (1258 views)
technically assistance with csv needed Can't Post

I have a small program that reads in a csv file, truncates a line or 2 using split. Makes a calculation, and rearrange the output and place it into another csv file.

The problem lies in where the "" end up. Apparently the truncation screws up the placement of quotation Marks. How do I strip the "" from the file as i read it in? This will solve the issue.


KevinR
Veteran


Mar 5, 2008, 12:25 PM

Post #2 of 4 (1256 views)
Re: [trey5498] technically assistance with csv needed [In reply to] Can't Post

not sure I understand your question, but:

$foo =~ s/"//g;

removes all double-quotes from string $foo.
-------------------------------------------------


trey5498
Novice

Mar 5, 2008, 12:47 PM

Post #3 of 4 (1255 views)
Re: [KevinR] technically assistance with csv needed [In reply to] Can't Post

ty ty ty so very much ;)

That did it!!


KevinR
Veteran


Mar 5, 2008, 1:37 PM

Post #4 of 4 (1254 views)
Re: [trey5498] technically assistance with csv needed [In reply to] Can't Post

You're welcome Smile
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives