Help for this page

Select Code to Download


  1. or download this
    # Code from the perldoc
    use Memoize;
    ...
    
    # Set up memoization, supplying expiring persistent hash for cache
    memoize 'function', SCALAR_CACHE => [ HASH => \%cache ];
    
  2. or download this
      
    if(exists($args{HASH}))
      {
    ...
      {
          $args{C} = \%cache;
      }