ronniec has asked for the wisdom of the Perl Monks concerning the following question:
When I try and run this now it complains with the following (in a windows box):-#!/usr/bin/perl -w use strict ; use Win32::AdminMisc ; # S C A L A R S #----------------# my $hostname = undef ; my $ipAddress = undef ; my $Ifile = "c:\\Perl\\RC\\PC_List\.txt" ; # A R R A Y S #-------------# my @fields = () ; # # P R O C E S S I N G #---------------------# open IPF, "<$Ifile" or die "\n\tCan't open $Ifile :: $!\n" ; while (<IPF>) { chomp ; @fields = split /\|/, $_ ; $hostname = $fields[0] ; print "\n\tProcessing PC $hostname\n" ; if ( $ipAddress = Win32::AdminMisc::GetHostAddress($hostname) ) { print "\n\tThe Ip address for $hostname is $ipAddress\n" ; } else { print "\n\tUnable to resolve IP address for $hostname\n" ; } } close IPF or die "\n\tCan't close $Ifile :: $!\n" ;
Now unless windows is case sensitive the AdminMisc.DLL is exactly where it says it can't find it! Any help would be most appreciated. ThanksCan't load 'C:/Perl/site/lib/auto/Win32/AdminMisc/AdminMisc.dll' for m +odule Win3 2::AdminMisc: load_file:The specified module could not be found at C:/ +Perl/lib/D ynaLoader.pm line 230. at C:\Perl\RC\Get_PC_IP.pl line 4
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::AdminMisc Problems
by doowah2004 (Monk) on Oct 18, 2006 at 16:56 UTC | |
|
Re: Win32::AdminMisc Problems
by syphilis (Archbishop) on Oct 18, 2006 at 23:28 UTC | |
by Cabrion (Friar) on Oct 19, 2006 at 12:14 UTC | |
|
Re: Win32::AdminMisc Problems
by ww (Archbishop) on Oct 18, 2006 at 19:38 UTC | |
|
Re: Win32::AdminMisc Problems
by bingos (Vicar) on Oct 19, 2006 at 10:39 UTC |