# try: Win32::NetAdmin::LoggedOnUsers('cr2rchiis26e', \%users); # instead of: Win32::NetAdmin->LoggedOnUsers('cr2rchiis26e', \%users);