Thanks for your report.
The bug is now located and will be fixed ASAP.
Knowing that the bug is in the OpenOffice::OODoc::File submodule, there
is a possible temporary workaround in the mean time. This workaround
consists of using the File.pm submodule of the previous version. To
install it, follow the instructions below:
1) Locate your OpenOffice::OODoc installation path (using, for example,
the oodoc_version command line utility) and look for "File.pm" (it's ID
string should be "File.pm 2.201 2009-06-06");
2) Download the previous version of this submodule at
http://search.cpan.org/src/JMGDOC/OpenOffice-OODoc-2.108/OODoc/File.pm
3) Check the ID of the downloaded file, that should be "File.pm 2.118
2009-01-30";
4) Replace the current File.pm (2.201) by the previous one (2.118);
5) Please let me know if it works.
Le Sam 09 Jan 2010 15:05:34, JLouisBiz a écrit :
Show quoted text> In man page it is explained that this works:
> use OpenOffice::OODoc;
> my $document = odfDocument(file => "MyFile.odt");
>
> And that does work. For example:
>
> #!/usr/bin/perl -w
> use strict;
> use warnings;
> use OpenOffice::OODoc;
> my $document = odfDocument(file => "Template.odt");
>
> But if I put full path instead of Template.odt, I get error:
>
> Can't call method "isa" without a package or object reference at
> /usr/local/share/perl/5.10.0/OpenOffice/OODoc/File.pm line 362.