Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Win32::OLE Word Search and Replace Script Runs Locally but not as part of CGI

by Nitrox (Chaplain)
on Feb 13, 2003 at 20:56 UTC ( #235108=note: print w/replies, xml ) Need Help??


in reply to Win32::OLE Word Search and Replace Script Runs Locally but not as part of CGI

Add some error reporting after interacting with the OLE object. It appears that $doc isn't being defined which would lead me to suspect that the OLE call is failing.

Update
To be more explicit, change line 19 to:

my $doc = $word->Documents->Open("$oldfile") or die("Couldn't open $ol +dfile");

-Nitrox

  • Comment on Re: Win32::OLE Word Search and Replace Script Runs Locally but not as part of CGI
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://235108]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2022-11-29 07:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?