Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Cosmic Cruizer
April 2, 2008, 2:17 am
rate this thread
admin accounts on. When I run the following it gives me an error:
my $host = "some IP address"; # Changed the IP address for posting
$ipconfig = Win32::IPConfig->new($host); # This is where it fails when
ran with admin account.
print "hostname=", $ipconfig->get_hostname, "\n"; # This is where it
fails when ran without admin account.
This happens with admin account
Can't use an undefined value as an ARRAY reference at
C:/Perl/site/lib/Win32/TieRegistry.pm line 720.
This happens without using admin account (It's not first getting
Can't call method "get_hostname" on an undefined value at C:\NIC\nic1.pl
Any suggestions on what I need to do to fix this problem?
Is it failing because TieRegistry.pm is not able to get the registry
settings for the NIC?
(I have not been having luck with anything I've tried to do to get the
NIC info from remote servers.)