doran has asked for the wisdom of the Perl Monks concerning the following question:
Writing for the Win32 platform, a fellow programmer has a OLE automation server that he wants me to pass a perl object to. The automation server will then make method calls on that perl object, exectuting my perl code.
Now, I know how to make method calls on OLE automation objects, but I don't know how to pass my perl objects to them so my perl methods are available to the OLE object. When I pass a regular perl object to this OLE object, its own (non-perl) IsObject() test returns false.
I would suspect that the ability for an OLE automation object to make method calls on a perl object isn't new, and so I'm thinking I'm missing something obvious. Any ideas on where I can look to find out how this is done?
Comment on Calling methods from an OLE automation server
Not sure how you would pass a Perl object to the Automation server but you may not need to -- there is a way to bind events to Perl functions as you can see in these nodes.