in reply to converting txt to csv and formatting
You're guaranteed to have three lines of information per client entry, right? You could do this (not the prettiest, perhaps):
while(my $client = <>) { chomp $client; chomp(my $phone = <>); chomp(my $email = <>); ... }
For writing your CSV file, I'd suggest using a module from CPAN (e.g. Text::CSV) rather than rolling your own.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: converting txt to csv and formatting
by csorrentini (Acolyte) on Jul 06, 2014 at 01:07 UTC | |
by Jim (Curate) on Jul 06, 2014 at 02:06 UTC | |
by csorrentini (Acolyte) on Jul 06, 2014 at 02:34 UTC | |
by Jim (Curate) on Jul 06, 2014 at 02:47 UTC | |
by csorrentini (Acolyte) on Jul 06, 2014 at 04:09 UTC | |
by boftx (Deacon) on Jul 06, 2014 at 01:21 UTC |