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


in reply to Re^3: Running a process in the background
in thread Running a process in the background

Hello, Remember to check for a fork error after forking:
if (my $pid = fork) { ## Parent } elsif ($pid == 0) { ## Child } else { ## Error, $pid is undefined }