http://www.perlmonks.org?node_id=58866


in reply to Re: List of groups on Win32
in thread List of groups on Win32

But I have a problem with AdminMisc - it seemed to install OK, but every time I call my little program:
#!/usr/bin/perl -w

use Win32::AdminMisc qw(GetDC GetGroups);

my $dc;
my @groups;

$dc = GetDC();

GetGroups($dc, GROUP_TYPE_ALL, \@groups);

my $item;

foreach $item(@groups) {
  print "$item\n";                                          
}

I get an error message:

bash-2.02$ perl dominfo.pl
"GetDC" is not exported by the Win32::AdminMisc module at dominfo.pl line 3
"GetGroups" is not exported by the Win32::AdminMisc module at dominfo.pl line 3
Can't continue after import errors at dominfo.pl line 3
BEGIN failed--compilation aborted at dominfo.pl line 3.
bash-2.02$

I'm not up on how perl modules and such work, so I don't know how to fix this :-(