First, you'll need to unbuffer STDOUT, and then you'll need to close STDOUT in the child (if you don't unbuffer, when you close STDOUT in the child, the buffer will be flushed and you may get some duplicate output.) Also your parent should just exit, and then the child will be left to do its thing in the background.
Something like this should work
local $| = 1;
if($pid = fork()) {
#Do some parent stuff
exit;
}
else { #Child
close(STDOUT);
#Do child stuff
}
Hope that helps.
cephas