in reply to Re^2: Learning to use fork()
in thread Learning to use fork()

Recover or die:

if ($pid = fork) { # parent } else { die "cannot fork: $!" unless defined $pid; # child }