On Fri, 19 May 2000 11:30:45, "Scott K Purcell" <[EMAIL PROTECTED]>
wrote:

>#! perl
>use Win32::OLE;
>my $mailer = Win32::OLE->new("SMTPsvg.Mailer") or die
>scalar($Win32::OLE->LastError());
>And the error is:
>Can't call method "LastError" on an undefined value at 
>G:\Inetpub\wwwroot\test4.pl line 5.

LastError is a class method; there is no variable called $Win32::OLE.  You
call it like this:

    Win32::OLE->LastError

BTW, the scalar() around it doesn't make any sense.  If you want the
numeric error code instead of the test, use either int() or just add zero
"0+Win32::OLE->LastError".

-Jan

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to