in reply to Perl and OLE Help needed

Have you tried:

$OLE1->Net->{PasswordTimeout} = 45;

In general, VB is quite strict about how its objects/variables can be accessed. Look at the Win32::OLE documentation to read about the different ways available to access OLE objects from Perl.

Replies are listed 'Best First'.
Re^2: Perl and OLE Help needed
by wa4otj (Beadle) on Feb 07, 2008 at 07:13 UTC
    Thanks for the suggestion.
    $OLE1->Net->(PasswordTimeout) = 45;
    returns "not a subroutine reference"

    I will re-read the WIN32::OLE docs again. But so far, no help.
    Thanks,
    Nat

    OH! Wait!
    $OLE1->Net->{PasswordTimeout} = 45;
    (Braces, not Parens!) It WORKS IT WORKS!!

    Much thanks,
    Nat

      Read my node again. I used curly brackets {...}, not round parentheses.

        Saw it, before I saw your second reply. I got bit by the small font my browser defaulted to.
        Again, much thanks,
        Nat