Help for this page

Select Code to Download


  1. or download this
    sub global_sum {
      state $sum = 0;
      $sum += $_[0];
      $sum;
    }
    
  2. or download this
    $ perl -e '
    > use strict;
    ...
    Heavy calculations
    42
    42
    
  3. or download this
    $ perl -e '
    > use strict;
    ...
    > '
    47
    52