http://qs321.pair.com?node_id=125663


in reply to Backgrounding a Program

Here's one way to do it:
my $pid = fork; exit if ($pid); # Your code here