Help for this page

Select Code to Download


  1. or download this
    sub inc_original {
       $_[0]++;
    ...
       my $j = inc_refactored($i);
       print("$i + 1 = $j\n");    # 3 + 1 = 4
    }