in reply to how do i open a word doc?

... (I) want to open a word document when a user clicks a link in the browser.

This doesn't require Perl; you need to make sure that the webserver is supplying the right MIME type for the .doc file (application/msword should work), and make sure the browser has a handler installed for that MIME type.