Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    use strict;
    ...
            redo;
        }} 
    }
    
  2. or download this
    sub p_idiomatic
    {
        # Use a numeric sort to enforce that m is greater then n
    ...
    
        return $m;
    }
    
  3. or download this
    sub gcd {
      my ($n, $m) = @_;
      while ($m) {
    ...
      }
      return $n;
    }