Next | The Perl Hardware Store | DC.pm Version | 32 |
Writing this kind of caching code is repetitive
C programmers do it every day
In Perl, we can do better:
use Memoize; memoize 'fib';
fib now has caching behavior
Next | Copyright © 2003 M. J. Dominus |