in reply to MS Outlook GetSharedDefaultFolder

Okay, you're assigning values to variables when you should be checking equality. You need == or eq (depending of the contents of said variables) in place of those = signs.

Replies are listed 'Best First'.
Re: Re: MS Outlook GetSharedDefaultFolder
by Mitch (Sexton) on Sep 03, 2003 at 18:56 UTC
    The problem seems to be with
    $p2 = $namespace->GetSharedDefaultFolder($recipient, 6)

    using == or eq in the if doesn't help. I am able to successfully resolve the address before this statement by usingprint $recipient->address;

    Mitch
      Wait a minute. You want to assign the value of $namespace->GetSharedDefaultFolder($recipient, 6) to $p2? Then why did you put the assignment inside of an if statement?
        Because $p2 = $namespace->GetSharedDefaultFolder($recipient,6) returns a lvalue, which the "if" operator interprets as true, if GetSharedDefaultFolder() succeeds. Otherwise it returns undef which "if" interprets as false.