in reply to Re: MS Outlook GetSharedDefaultFolder
in thread MS Outlook GetSharedDefaultFolder

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

Replies are listed 'Best First'.
Re: Re: Re: MS Outlook GetSharedDefaultFolder
by Mr. Muskrat (Canon) on Sep 03, 2003 at 19:49 UTC
    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.