Help for this page
eval{$refRegistry->GetStringValue($HKEY_LOCAL_MACHINE, $newPath,$strVa +lueName, $value);}; print $@ if $@;
if (my $oWMIService = Win32::OLE->GetObject("winmgmts:\\\\$computer\\r +oot\\CIMV2") or warn "Unable to open $computer\n" && next OUTER){ .. +do stuff ..} if(my $colItems = $oWMIService->ExecQuery ( "Select * from Win32_Servi +ce")) {..do stuff..}