Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-16 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found