We are writing a custom module to avoid replicating code that we use in 
many of our scripts, things like standard subroutines that we don't 
want to have in multiple scripts.  A problem we are having is passing a 
variable to the module.  For example, the calling script has in it 
something like:

use CustomModule;
use Win32::AdminMisc;
$PDC = Win32::AdminMisc::GetPDC($domain);
$userid = Win32::AdminMisc::GetLogonName();
CustomModule::CustomFunction;

the custom function in the module has in it something like:

Win32::NetAdmin::GroupIsMember($PDC, $group, $userid));

What is the best way to pass the variables that are set in the script 
to the module call?
Any help that anyone can give would be great.

thanks,
DavidB

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to