use CGI qw(:standard); use strict; use warnings; my $line; my $file; my ($f1,$f2,$f3,$f4,$f5); my $output = "new.htm"; open (OUTPUT, ">$output") or die "Cannot open $output"; my $z=0; $file='irregular-verbs.csv'; open(F,$file)||die("Could not open $file"); while ($line=) { print OUTPUT ""; my @cells= split ',',$line; foreach my $cell (@cells) { print OUTPUT "$cell"; } print OUTPUT ""; } close(F);