![]() |
|
There's more than one way to do things | |
PerlMonks |
Re^3: How do I obtain a list of values for all the properties of a Word document using Win32::OLE?by ikegami (Patriarch) |
on Jun 11, 2009 at 19:14 UTC ( #770742=note: print w/replies, xml ) | Need Help?? |
Win32::OLE objects aren't copies of the foreign objects. If they were copies, you couldn't affect the remote objects. Each Win32::OLE object is an interface to a remote objects. Any fetch from the referenced hash results in a get from the remote object. Any change to the referenced hash results in a set in the remote object. And yes, you are doing repeated fetches.
It works much like your code, except it doesn't print anything. The output is placed in a string, which is returned when it's done.
In Section
Seekers of Perl Wisdom
|
|