I am writing a subroutine to be included in a .wft which needs to invoke a Win32API::NetAdmin function. To start, I have written an ipl containing the code.
#!D:\iw-home/iw-perl/bin/iwperl
use strict;
my $server = "HOBO";
my $group = "Reviewers";
my
@users;
use Win32API::NetAdmin qw(LocalGroupGetMembers);
sub main
{
LocalGroupGetMembers($server, $group, \
@users);
exit 0;
}
&main;
When I run the ipl from the command line I get an error:
Can't locate Win32API/NetAdmin.pm in
@INC (
@INC contains c:\Program Files\Interwoven\TeamSite\iw-perl\lib/MSWin32-x86 ......)
I believe the problem is that the location where the NetAdmin.pm file resides is not in the
@INC list, but am not sure how to correct the problem.