Next System Programming in Perl 22

Environment Variables

        $X = "parent\n";
        if (fork() == 0) {   # I'm the child
          $X = "child\n";
        }
        print $X;
        parent
        child


Next Copyright © 2003 M. J. Dominus