Help for this page

Select Code to Download


  1. or download this
    # Compute Fibonacci numbers, straight from Memoize docs
    use Memoize;
    ...
    }
    
    my $foo = fib(24);
    
  2. or download this
    sub fib{int(((((1+sqrt(5))/2)**$_[0])/sqrt(5))+.5)}