in reply to Re: converting txt to csv and formatting
in thread converting txt to csv and formatting
use warnings; use strict; my $infile="clients.txt"; open my $in, "<", $infile or die $!; open my $out, ">" , "clients.csv" or die $!; my $clients = print join ("\t\t" => qw(Name Phone E-mail)),$/; while (<$in>) { chomp; print $_, "\t"; print $/ if $. % 3 == 0; # note here }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: converting txt to csv and formatting
by 2teez (Vicar) on Jul 06, 2014 at 02:02 UTC | |
by csorrentini (Acolyte) on Jul 06, 2014 at 02:16 UTC | |
by Jim (Curate) on Jul 06, 2014 at 02:42 UTC |