in reply to How do I convert VBA script to Perl? - Using Win32::OLE
I'm sorry I'm on Linux so can't text Win32 MAPI stuff for you, but if your piece of code:
works (by the way that's == for a test, not = which would be an assignment) then you could use:if ($Inbox->Items->$Count == 0)
return if ($Inbox->Items->$Count == 0);
|
---|