I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time
for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or
on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news,
I hope these links will serve you well.
Posted on 2010-06-10 07:20:24.053352-07
by jmgdocin response to 12756
Re: How to detect if a table cell is empty?
First you can rerieve the cell object using getCell(), then count the elements inside the cell using the element-based children() method (this method is provided by XML::Twig, so it's not documented with OpenOffice::OODoc). Example:
my $cell = $doc->getCell($Tablename, 0, 1);
my @elements = $cell->children;
After the code sequence above, @elements is the list (possibly empty) of the elements inside the cell.