Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl
    use strict;
    ...
    }
    
    print "$_: ", partitions($_), "\n" for @ARGV;
    
  2. or download this
    #! /usr/bin/perl -w
    use strict;
    ...
    }
    
    print "$_: ", partitions($_), "\n" for @ARGV;
    
  3. or download this
    sub partitions {
      my $n = shift;
    ...
      }
      return $partitions[$n];
    }
    
  4. or download this
    sub partitions {
      my $n = shift;
    ...
      }
      return $partitions[$n];
    }
    
  5. or download this
    sub linear_sequence {
      my ($start, $inc) = @_;
    ...
              "  Rearranged:  $rearranged_sum\n";
      }
    }
    
  6. or download this
    #! /usr/bin/perl
    use strict;
    ...
      my $self = shift;
      #warn("Node: $self->{data} destroyed");
    }