Acme-Cow-Interpreter
view release on metacpan or search on metacpan
lib/Acme/Cow/Interpreter.pm view on Meta::CPAN
croak "$name() is a class method, not an instance/object method"
if $protoref;
# The new self.
my $self = {};
# Bless the reference into an object.
bless $self, $class;
# Initialize it. The return value of init() is the object itself.
$self -> init();
}
=pod
=item init()
lib/Acme/Cow/Interpreter.pm view on Meta::CPAN
my $ref = ref $self -> {$key};
if ($ref eq 'ARRAY') {
@{ $copy -> {$key} } = @{ $self -> {$key} };
} else {
$copy -> {$key} = $self -> {$key};
}
}
# Bless the copy into an object.
bless $copy, $class;
}
=pod
=item parse_string( STRING )
Parses the given string and stores the resulting list of codes in the
object. The return value is the object itself.
=cut
( run in 0.416 second using v1.01-cache-2.11-cpan-de7293f3b23 )