MJaskilka has asked for the wisdom of the Perl Monks concerning the following question:

Hello wise Perlers! I'm translating a Microsoft Word macro into Perl and am having trouble on one line, which moves the focus to the next Section. Can you help me translate this one line into Perl? Thanks!

Selection.Goto what:=wdGoToSection, which:=wdGoToNext, Count:=1, Name: +=""

Replies are listed 'Best First'.
Re: wdGoToSection help
by Anonymous Monk on Oct 07, 2010 at 21:20 UTC
    ...->Selection->Goto(... => ... ) ...->{Selection}->Goto(... => ... )

      I don't understand what's in the "..." part. Can you help? thanks

        See Win32::OLE for how to pass named arguments:

        $ex->Dmethod($RequiredArg1, {NamedArg1 => $Value1, NamedArg2 => $Value +2});

        If you have more questions, these would be covered in an introductory course to Perl.

        Guess