Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: WIN32::OLE Word

by NetWallah (Canon)
on Mar 14, 2008 at 16:00 UTC ( [id://674244]=note: print w/replies, xml ) Need Help??


in reply to WIN32::OLE Word

You may want to consider moving the instantiation of the $Word object Outside the sub. This should improve efficiency considerably, since you would use the same instance of Word to open all files.

Of course, if you are opening only one file, it will not matter, but, as a matter of style, you may want to do that anyway, to help someone maintaining your program, who may consider using it differently.

     "As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-19 00:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found