Help for this page

Select Code to Download


  1. or download this
    sub set_foo {
      my ($self, $newfoo) = @_;
    ...
      $self->[2] = localtime(); # track last access
      return $_[0]->[0];
    }
    
  2. or download this
    $slick->{foo} = 'Some value';
    print $slick->{foo}, "\n";
    
  3. or download this
    $slick->set_foo('Some value');
    print $slick->get_foo(), "\n";
    
  4. or download this
    sub STORE {
      my ($self, $key, $val) = @_;
    ...
        # get normal keys somehow
      }
    }