Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    use strict;
    ...
    
    my $method = sub { return shift->name };
    print Foo->new->$method;
    
  2. or download this
    sub access {
      my ( $self, $x, $y ) = splice @_, 0, 3;
      my $method = $self->{crefs}{$x}{$y};
      return $self->$method(@_);
    }