I'm using Win32::OLE::Const->Load()
in perl :
$xl = Win32::OLE::Const->Load('Microsoft Excel');
then I test if scalar(keys %{$xl})
is zero :
if (scalar(keys %{$xl})==0) {
return False;
}
else {
return True;
}
I tested this code in machine which supports Microsoft Excel 2003 it gives True
, but when I tested the same code in machine where there is Microsoft Excel 2013 it gives me False
!
I also printed the scalar(keys %{$xl}
in the first machine it gives 2023, in the second machine it is 0!
Best Regards
perl
are you using on the two machines? – Håkon Hæglandprint ref $xl,"\n"
give you? – Håkon Hægland