My guess is the hash is returning containing one variable - undef, because the function is failing. Because hashes have to contain an even number of values, the hash can't contain only undef.
I see nothing in your code which specifies which machine you are trying to read from. Is that on another line somewhere? It isn't in the line you are using to try to get the values. --Chuck --- "Christopher L. Severson" <[EMAIL PROTECTED]> wrote: > I am using this module/function to try and get all of the environment > variables from a REMOTE machine into a hash - is this possible? > > I am currently trying this just for a local machine, and am getting an > error that states: > 'Odd number of elements in hash assignment at test5.pl line 24' > > The code I am running is below: > > use Win32::AdminMisc; > > %envlist = (); > %List = (); > > > %envlist = Win32::AdminMisc::GetEnvVar(\%List, ENV_USER) || die "Cannot > retrieve information.\n "; > > 1) What is wrong with my code? After reading it from a couple of > different sources (www.roth.net being one of them) I am unable to get this > hash to populate > > 2) Is it possible to use this to populate a hash full of variables from a > REMOTE machine? > > Again, Thanks in Advance for any responses! > > -Chris __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
