in reply to Re: Working with COM objects
in thread Working with COM objects
In Win32::OLE property assignment using the hash syntax is equivalent to the Visual Basic Set syntax (by reference assignment):
$Object->{Property} = $OtherObject;corresponds to this Visual Basic statement:
Set Object.Property = OtherObjectTo get the by value treatment of the Visual Basic Let statement
Object.Property = OtherObjectyou have to use the LetProperty() object method in Perl:
$Object->LetProperty($Property, $OtherObject);LetProperty() also supports optional arguments for the property assignment. See OBJECT->SetProperty(NAME,ARGS,VALUE) for details.
|
|---|