RE: Cleaning poorly formated csv files

2002-03-17 Thread Jonathan E. Paton
> Thanks. I got lots to learn about perl, thinking > for the 2 hours I was trying to solve my issue > with chomp and split. I have began disecting your > reponse to learn from it. One question, the last > print statement: > > print $_ . "\n"; since ($Jonathan eq "Fool") { Opps... I've abondone

Re[2]: Cleaning poorly formated csv files

2002-03-17 Thread Daniel Gardner
Sunday, March 17, 2002, 12:18:01 AM, Dave Chappell wrote: > Thanks. I got lots to learn about perl, thinking for the 2 hours I was > trying to solve my issue with chomp and split. I have began disecting your > reponse to learn from it. One question, the last print statement: > print $_ . "\n";

RE: Cleaning poorly formated csv files

2002-03-16 Thread Dave Chappell
nothing is displayed Regards, Dave -Original Message- From: Jonathan E. Paton [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 16, 2002 6:40 PM To: [EMAIL PROTECTED] Subject: Re: Cleaning poorly formated csv files > I’m new to perl and this list. I am trying to > create a script th

Re: Cleaning poorly formated csv files

2002-03-16 Thread Jonathan E. Paton
> I’m new to perl and this list. I am trying to > create a script that cleans up csv files in > the following ways: search.cpan.org There is a CVS module someplace, which might do what you require with less hassle... or might not. > -Remove tab characters > -Remove trailing commas tr/\t//d; #

Cleaning poorly formated csv files

2002-03-16 Thread Dave Chappell
Hi, I’m new to perl and this list. I am trying to create a script that cleans up csv files in the following ways: -Remove tab characters -Remove trailing commas -Replace ^’ character sequence with a comma -Want to preserve the CRLF and the end of each line Then I output the results to another f