This little snippet is close to what I want. It prints dark rows in the table if the line of the text file just has a newline, but it takes each line of text and makes it its own row. What I want to do is take all the text up to the next newline into one row, then print the dark rows for the newline(s). How can I modify this to keep reading, I know it needs to be an
until or something like that but I can't seem to figure it out.
TIA
jg
while (<FH>) {
chomp($_);
if (/(.)/) {
print "<TR><TD>Checkbox</TD><TD>$_ </TD></TR>\n";
} else {
print "<TR bgcolor=#000066><TD WIDTH=298> </TD><TD WIDTH=
+298> </TD></TR>\n";
}
}
close FH;
_____________________________________________________If it gets a little bit out of hand sometimes, don't let it fool you into thinkin' you don't care.
TvZ