http://www.perlmonks.org?node_id=11132849


in reply to Re^3: Killing subprocess in windows
in thread Killing subprocess in windows

Yes, i know you don’t want to spawn…

But consider something like this:

use strict; use warnings; use threads; use MCE::Hobo; my $hobo = MCE::Hobo->create( sub { …; }); my $pid = $hobo->pid(); # $hobo->join();

Update:

«I though about sending a 'kill', but Perl doesn't seem to give me the PID.»

Now you have one to kill.

«The Crux of the Biscuit is the Apostrophe»