use Win32::Process; use Win32; sub ErrorReport{ print Win32::FormatMessage( Win32::GetLastError() ); } Win32::Process::Create($ProcessObj, "C:\\Perl\\bin\\perl.exe", "perl temp.pl", 0, NORMAL_PRIORITY_CLASS, ".")|| die ErrorReport();
I use the following code to invoke temp.pl from main.pl script. Temp.pl script runs and completes execution and then keeps on waiting ie does not end(The cmd cursor keeps blinking even after the Temp.pl script is run). Why??
In reply to Waiting For Input by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |