1 You can define multimethods with the "multi" declarator:
3 use Class::Multimethods::Pure;
5 multi collide => ('Bullet', 'Ship') => sub {
9 multi collide => ('Ship', 'Asteroid') => sub {
13 It is usually wise to put such declarations within a BEGIN block, so
14 they behave more like Perl treats subs (you can call them without
15 parentheses and you can use them before you define them).
17 WWW: http://search.cpan.org/dist/Class-Multimethods-Pure/