[EMAIL PROTECTED] wrote:
> $_ = shift @data until /Amount/; # start of transactions
>
>> and get this warning:
>
> Use of uninitialized value in pattern match (m//) at CMS2AP.pl line 138.
>
> One way to avoid the warning is to check for that first uninit'ed $_
Thank you Andy
I had been thi
Thanks for sharing your work on Exhange (Win32::Exchange) with the
community Steven.
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
The following code has the benefit of using NT credentials of the
currently logged in user. But, the currently logged in user needs to
have access in Exchange. :)
No passwords in clear text to glean from your scripts That's
usually a good thing. :)
$OLECon =
Win32::OLE->GetObject("winmgm
Figured it out:
$host = "192.168.42.3";
$user = "vdom\\Administrator";
$pass = "password";
$WMI = Win32::OLE->new('WbemScripting.SWbemLocator') ||
die "Cannot access WMI on local machine: ", Win32::OLE->LastError;
$OLECon = $WMI->ConnectServer($host, "root\\MicrosoftExchangeV2", $user,
$
I use this to query Exchange Mailbox and Public Folder sizes locally on
the server:
use Win32::OLE qw(in);
# Get item counts and sizes for each mailbox on the target server
#
my $OLECon=
Win32::OLE->GetObject('winmgmts:localhost\\root\\MicrosoftExchangeV2')
or die "WMI Connection Failed\n";
Adam R. Frielink wrote:
> I have hit a road block using the Win32-API module. I've gotten a
> working tool which allows me to modify the contents of the Crystal
> Reports RPT file in memory using the API interface. Unfortunately,
> everytime I attempt to access a particular method, my application
$_ = shift @data until /Amount/; # start of transactions
> and get this warning:
Use of uninitialized value in pattern match (m//) at CMS2AP.pl line 138.
One way to avoid the warning is to check for that first uninit'ed $_
#!perl -w
use strict;
my @data = qw(hi ho hee ha Amount hoo hooh);
I have hit a road block using the Win32-API module. I've gotten a
working tool which allows me to modify the contents of the Crystal
Reports RPT file in memory using the API interface. Unfortunately,
everytime I attempt to access a particular method, my application fails
with a very non-specific