Help for this page

Select Code to Download


  1. or download this
    $obj_multi->new( $obj_1, $obj_2 );
    $obj_multi->foo();                  # $obj_1->foo();  $obj_2->foo();
    
  2. or download this
    package MultiMethod;
    use strict;
    ...
        }
    }
    42;
    
  3. or download this
    MultiMethod( 'methodname', [], $file, $file2 );
    
    ...
        my $args   = shift;
        $_->$method(@$args) for @_;
    }