I'd like a little clarification here. I assume, given that you want this activiated by a link in a browser, that we have a client/server situation here. Do you want the word document to open on the client computer, or do you want to open and read a word document with your perl code? Is the word document on the client computer, or on the server?

If you want a word document which resides on the server to be opened on the client machine, as simple link with a http url path to the document will work. If the word document is on the clients machine, you can use a link with a file:// and a path to the document.

<a href="http://your.server/path/to/word.doc">click here</a> <a href="file://C:/path/to/word.doc">click here</a>

If you were running your perl code on the client side, via a gui or perl script embedded in html, I suppose you could use Win32::OLE to start word, and make it open a document, but I would think it would be easier to use simple links in a browser.

I hope this is helpfull, let me know if there is anything which remain unclear.

May the Force be with you

In reply to Re: how do i open a word doc? by JediWizard
in thread how do i open a word doc? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.