Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Regarding the "Comment" object in Perl's Win32::OLE

by jdporter (Paladin)
on Jan 17, 2005 at 16:59 UTC ( [id://422782]=note: print w/replies, xml ) Need Help??


in reply to Regarding the "Comment" object in Perl's Win32::OLE

Others have answered your specific question, but I'd like to make a comment on your code. You're doing things like
$Doc->{Comments}
$c->{Scope}{Text}
and
$c->{Range}{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.:
$Doc->Comments
$c->Scope->Text
and
$c->Range->Text
You only need the curly braces when assigning to the like-named properties, e.g.
$Word->{Visible} = 1;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-20 01:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found