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