in reply to Creating a table from text delimited by newlines
$/="\n\n"; #set the input Record seperator to + a double newline while (<FH>) { next if /^\n+$/; #ignore lines which contains only +newlines print "<TR><TD>Checkbox</TD> <TD>$_ </TD></TR>\n #print the textblock with an ... print <TR bgcolor=#000066> #apending darkline <TD WIDTH=298> </TD> <TD WIDTH=298> </TD> </TR>\n"; } close FH; ----------------------------------- --the good, the bad and the physi-- -----------------------------------
|
|---|