in reply to About open office

OpenOffice::OODoc seems like a good bet to have a look at. It is a whole family of modules to deal directly with OpenOffice files. OpenOffice::OODoc::Text specifically deals with the wordprocessor files (or rather the "text-containers" which you can also find in spreadsheets of the OpenOffice suite).

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: About open office
by Anonymous Monk on Jun 18, 2009 at 09:05 UTC
    Hi,
    I tried the above module to open the word file through openoffice through perl. But i can't. Would you please help me in this.

    Waiting for your reply. Thanks,

      I guess the first step would be that you show us the relevant part of the code you have written, and describe what it should do and how it fails for you.

        Hi tried the below,
        $filename="c:\\in\\1.doc";>br> my $archive = OpenOffice::OODoc::File->new("$filename");
        my $c = ooDocument
        (
        file => $filename,
        member => "content"
        );
        But iam unable to open the doc file. Willany one help me how to open the doc file through open office in perl.