- or download this
my $self = {}; # hash ref
...
foreach my $method (@method_names_from_file) {
$self->{$method} = makeCommandSub($stuff);
}
- or download this
my $code = sub {
my $self = shift;
print "Dang, it worked.\n";
};
return $code;
- or download this
$myDB <hash>
->{method1} <CODE>
->{method2} <CODE>
- or download this
$myDB->method1();
- or download this
Can't locate object method "method1" via package "BigDB" at line...