gregmatthews has asked for the wisdom of the Perl Monks concerning the following question:

I'm totally stumped (a Perl learner) on where to start on this one.

I want to create a link from a webpage to a CGI script that retrieves a document from a document management system.

Word uses wordbasic.fileopen"::ODMA\DOCS\DOCMAN\1234\1" to retrieve the document.

Is there a Perl module for ODMA?
open(FILE, "::ODMA\DOCS\DOCMAN\1234\1") doesn't work.

Where should I start, or should I abandon hope now?

G.

Replies are listed 'Best First'.
Re: ODMA document access via Perl
by dakkar (Hermit) on Jan 07, 2003 at 14:53 UTC

    What is ODMA?

    Apart from that, "opening a file" in Windows is really an abstract act: it can open an actual, local file, or a remote file via various protocols, or a dynamically-generated resource of some sort.

    I think that you have installed some driver that tells Windows how to handle file requests in the form ::ODMA\.

    Perl's open can only access local files. You can try using Win32API::File's functions createFile and OsFHandleOpen to open a Perl filehandle to a generic resource (NOTE: I don't use Win32, so I can't guarantee that this will work)

    -- 
            dakkar - Mobilis in mobile
    
Re: ODMA document access via Perl
by iguanodon (Priest) on Jan 08, 2003 at 04:03 UTC
    I'd start with Google first.

    Word uses wordbasic.fileopen"::ODMA\DOCS\DOCMAN\1234\1" to retrieve the document.

    Maybe you can make Word do the work, using Win32::OLE?