Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by ikegami (Patriarch)
on Jan 24, 2006 at 16:17 UTC ( [id://525224]=note: print w/replies, xml ) Need Help??


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

I can't help you much — this is outside my area of expertise — but I see some problems.

In Inbox = $ns->GetDefaultFolder(olFolderInbox);, are you sure olFolderInbox is correct? Be sure to use use strict; and use warnings;.

if ($Inbox->Items->$Count = 0) {
should be
if ($Inbox->Items->Count = 0) {

foreach ($Inbox->Items) {
should be
foreach (in $Inbox->Items) {
Don't forget to import in:
use Win32::OLE qw( in );

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-19 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found