My perl script currently has a system call to matlab. When Matlab runs it spits out a file that the rest of my perl script needs. Right after the system call to matlab there is a statement in perl to open the file that matlab spits out. But unfortunately the perl script jumps onto this statement before the system call is completed. It gives me an error because the system call that produces the file this statement needs to open is not been completed and so the file doesnt exist yet.
How can I solve this problem?
Can I make a system call from matlab to run a perl script? this way I can split my perl script. End the first one at the system call to matlab and then incoporate a system call for the rest of my perl script in my matlab code?
Is that possible.. if so how? and if not .. is there any other way to go about this problem
Thank you