Help for this page

Select Code to Download


  1. or download this
    {
      my %cache;
    ...
          defined $cache{ $arg } ? $cache{ $arg }
                                 : $cache{ $arg } = grunt($arg);
    }
    
  2. or download this
    sub heavy_lifting {
      my $self = shift;
    ...
      return defined $self->{ _heavy } ? $self->{ _heavy }
                                       : $self->{ _heavy } = $self->grunt(
    + $arg );
    }