Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $modules = shift;
    my $first_group = ceil($modules/2);0
    printf "Call %d on port 80, %d on port 8080\n",$first_group,$modules -
    + $first_group;
    
  2. or download this
    $: perl divide.pl 8
    Call 4 on port 80, 4 on port 8080
    $: perl divide.pl 9
    Call 5 on port 80, 4 on port 8080
    $: