in reply to Re: Cancel a thread running a batch file from mainin thread Cancel a batch file ran by a thread from main
my @jobs ; ... push @jobs, Proc::Background->new( $command, $arg1, $arg2 ); ... $jobs[0]->die if $jobs[0]->alive; [download]