Help for this page

Select Code to Download


  1. or download this
    sub option {
        my ($self,$arg,$value) = @_;
        return $self->{options}->{$arg} unless $value;
        $self->{options}->{$arg} = $value;
    }
    
  2. or download this
    my %hash;
    @hash{('a'..'d')} = (1..4);
    
  3. or download this
    sub foo {
       my ($self) = @_;
    }
    
  4. or download this
    sub new {
        my ($class) = @_;
    ...
        
        return bless $self, $class;
    }