Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 contemplating the Monastery: (5)
As of 2021-09-16 18:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?