Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How do I convert VBA script to Perl? - Using Win32::OLE

by serf (Chaplain)
on Jan 24, 2006 at 15:48 UTC ( #525206=note: print w/ replies, xml ) Need Help??


in reply to How do I convert VBA script to Perl? - Using Win32::OLE

If you're going to be building this block of code the same way in Perl i.e. using a sub then you could use return where it has Exit Sub.

I'm sorry I'm on Linux so can't text Win32 MAPI stuff for you, but if your piece of code:

if ($Inbox->Items->$Count == 0)
works (by the way that's == for a test, not = which would be an assignment) then you could use:
return if ($Inbox->Items->$Count == 0);


Comment on Re: How do I convert VBA script to Perl? - Using Win32::OLE
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://525206]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2015-07-04 21:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls