http://www.perlmonks.org?node_id=515563


in reply to Re^2: Printing extracted Excel data into a HTML table
in thread Printing extracted Excel data into a HTML table

yes sorry, didn't think about that. This is all the original code with a few extra prints in. Didn't want to rewrite his code for him. But yes I did forget about empty rows. So instead of:
print "<td>" . $CellObject->Value . "</td>" if ($CellObject); I would do: print ($CellObject ? ("<td>" . $CellObject->Value . "</td>") :"<td>&nb +sp;</td>");
Updated: added &nbsp; as ww suggested. Otherwise it might render like crap.