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: 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; #