- or download this
package Curryable;
...
my $method = $self->can($method_name) || die "No $method_name meth
+od found";
return sub { $self->$method(@args, @_) };
}
- or download this
my $handler = MIS_SAX_Parser->new($cb->curry('printit'));
- or download this
sub rcurry {
my ($self, $method_name, @args) = @_;
my $method = $self->can($method_name) || die "No $method_name meth
+od found";
return sub { $self->$method(@_, @args) };
}