subroutine{ my @data; my $table; open( F, "$File" ) || die("Could not open $File"); while () { chomp(); push( @{@data[$.]},( split /,/, $line)); } close(F); $table .= ""; for my $i ( 0 .. $#data ) { $table .= ""; for ( @{@data[$i]}){ $table .= "\r\n"; } $table .= ""; } $table .= "
$_
"; }