Help for this page

Select Code to Download


  1. or download this
    sub name {
        return @_ ? $self->{name}
                  : $self->{name} = $_[0];
    }
    
  2. or download this
    sub initialize {
        my $self = shift;
        return $self->set(@_);
    }
    
  3. or download this
    Foo->define_attributes(
        attr1 => 'NUM',
        attr2 => 'HASH',
        attr3 => 'STRING',
    );