in reply to Regarding the "Comment" object in Perl's Win32::OLE
$Doc->{Comments}
and$c->{Scope}{Text}
While this may work, it's not good style, and isn't guaranteed to work as you expect. Better to call the accessor methods, rather than violate the data abstraction model; i.e.:$c->{Range}{Text}
$Doc->Comments
and$c->Scope->Text
You only need the curly braces when assigning to the like-named properties, e.g.$c->Range->Text
$Word->{Visible} = 1;
|
|---|