Help for this page

Select Code to Download


  1. or download this
    sub subroutine {
        foreach (1..4) {
    ...
            print "$_ child finished; status is: $?\n";
        }
    }
    
  2. or download this
    #!/s/t/tye/bin/perl -w
    use strict;
    ...
        }
    }
    # Usage:  fork4 6 4 8 2