Hey just noticed this post. I don't know if you've figured it out yet or not, but you can use a foreach loop and split in Perl
to loop through the text file and split the strings into separate variables and then display them. It would make it a whole lot easier if your text file only had one delimiter and didn't contain any other content besides the delimited data.
Here's a little snippet you may be able to use that reads a space delimited text file and then displays html output for each line which is what I think you want to do.
Code:
#!/usr/bin/perl
$file= "file.txt";
open(FILE, "$file") || die "Couldn't open file: $file: $! n";
my @list = <FILE>;
close (FILE);
print "Content-type: text/htmlnn";
print "<html>n";
print "<body>n";
foreach my $var (@list) {
chop($var);
($one,$two,$three,$four,$five,$six)=split(/ /, $var);
my $results = <<__W__D__T__;
$one $two $three $four $five $six<br>
__W__D__T__
print $results;
}
print "</body>n";
print "</html>n";