Help for this page

Select Code to Download


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