Ok, I am trying to run another perl script from a perl script and have had little luck in doing so. The main script is in one directory and the one it is controlling is in another directory. the main script starts and calls the other script which is supposed to read a file. However, I get can not find the "readfile" which is located in the same directory as the script called by the first. Now, if I run the called script by itself the problem goes away and all is good. So the problem I believe is caused by the CWD of the commanding script. To get around this I tried:
chdir("C:\Go\Here\") || die "cant not change dir\n" ; system("perl someScript.pl -a createOperator -p f112a") || die "$_"; but it still does not work. Does anyone have an idea to get around this problem? Thanks David R. DiGregorio