in reply to how to come next line to debug

exec never returns, as clearly stated in the documentation. Maybe you want system instead?

Replies are listed 'Best First'.
Re^2: how to come next line to debug
by shan_emails (Beadle) on Nov 28, 2008 at 10:31 UTC
    foreach my $missingExe (@exeList){ chdir "d:\\exepath"; #change the path system(1, "$missingExe"); #for run the exe here 1 is for don' +t wait for next line to execute # $missingExe is the watch folder exe so it never ends }

    This coding runs fine but this program could not end, until or otherwise i manually close the exe's($missingExe). Then only i can end this program.

    So what can i do for this.

    Thanks in advance,
    Shanmugm A.
      If I understand your question correctly, it is "how do I run programs in the background?".

      This question has been asked many times here, and search for it should reveal many helpful replies.