> 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
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";
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
> Im new to perl and this list. I am trying to
> create a script th
> Im 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; #
Hi,
Im 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