Acme-CreatingCPANModules
view release on metacpan or search on metacpan
lib/Acme/CreatingCPANModules.pm view on Meta::CPAN
sub new {
my $self = shift;
my $foo = shift;
bless \$foo, $self;
}
sub set {
my $self = shift;
my $newfoo = shift;
defined $newfoo or return undef;
$$self = $newfoo;
return $self->get();
}
sub get {
my $self = shift;
return $$self;
}
and some documentation for these methods]
lib/Acme/CreatingCPANModules.pm view on Meta::CPAN
=head2 set
Sets the new value of the object.
=cut
sub set {
my $self = shift;
my $newfoo = shift;
defined $newfoo or return undef;
$$self = $newfoo;
return $self->get();
}
=head2 get
Gets the current value of the object.
=cut
( run in 1.240 second using v1.01-cache-2.11-cpan-d80b1682f3f )