Can Win32::OLE be used in parallel to start multiple instance of Matlab?
问题 When Parallel::Loops is combined with Win32::OLE to create multiple instance of Matlab, if we use my $ML = Win32::OLE->new('Matlab.Application') or die "Cannot start MATLAB" in each loop, the program crashes showing an unhandled exception. If drop the my before $ML then it works, but at any time only one instance is running. 回答1: I'm not sure what is the benefit of creating multiple MATLAB COM servers in a parallel loop. By default the server is created in shared mode, ie shared by all