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.
In reply to Re: converting txt to csv and formatting
by AppleFritter
in thread converting txt to csv and formatting
by csorrentini
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |