G
Grehom
I'm just trying to read a column in a spreadsheet and create a new
value in a new column to right of the others.
I tried with the following, but it doesn't create the new column, any
hints please
use OpenOffice::OODoc;
my $doc = odfDocument(file => 'iwm.ods');
$row = 3;
while ( my $cli = $doc->cellValue(0, "D$row") ) {
my $username = get_customer_account( $dbh, $cli );
print "$cli => $username\n";
$doc->cellValue(0, "E$row", $username);
$row++;
}
$doc->save();
It's reading the spreadsheet fine, but it's not inserting the new
value into 'E' column
value in a new column to right of the others.
I tried with the following, but it doesn't create the new column, any
hints please
use OpenOffice::OODoc;
my $doc = odfDocument(file => 'iwm.ods');
$row = 3;
while ( my $cli = $doc->cellValue(0, "D$row") ) {
my $username = get_customer_account( $dbh, $cli );
print "$cli => $username\n";
$doc->cellValue(0, "E$row", $username);
$row++;
}
$doc->save();
It's reading the spreadsheet fine, but it's not inserting the new
value into 'E' column