> The English of what I want to do is "If this remote value is > not defined, then skip over it and proceed on to the next > entry in the list." > > > > I want to avoid an error is the key doesn't exist. Every > variation of IF EXISTS I use doesn't work correctly. Is there > something obvious I am missing? > > > > > > > > foreach $server (@servers) { > > $sMachineName = $server; > > my $sKeyPath = > "HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\ "; > > > > my $remoteKey = $Registry->Connect( $sMachineName, $sKeyPath) > or print "Can't connect to $sMachineName or can't open > subkey:$^E\n"; # <--This is the line I am having problems with
I'm sorry I don't see an "if" statement at that line, so what is the problem With this line, it won't print if it can't connect, the variable isn't getting printed, Or what??? > > > > print "$server \n"; > > print $remoteval; > > print "------------------------ \n"; > > } > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]