in reply to Win32::OLE and lvalue issue

Properties are accessed as hash elements. Try $st->{'StringWait'} = 20;

Replies are listed 'Best First'.
Re^2: Win32::OLE and lvalue issue
by mercutio_viz (Scribe) on Jun 15, 2005 at 06:54 UTC
    Ikegami,

    That is exactly what I figured out by looking at the article on Perl.com about automating MS Word! Your suggestion was exactly correct.

    BTW, can you tell me where you learned that piece of information? Just curious. Also, thanks for the quick reply! I was coming back to say that I had figured it out but you had already responded.

    -MC

      FYI, my bad for not reading my books thoroughly!

      The poop on getting and setting properties is found (among other places) in Perl In A Nutshell in section 23.2. Sorry to bother...

      -Slightly Embarrassed Perl Initiate

      can you tell me where you learned that piece of information?

      From the pod. It's not properly documented, but it's there under LetProperty:

      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 = OtherObject