Funky Method Calls

Funky Method Calls

By Belden Lyman (‎belden‎) from
Lightning talk
Target audience: Intermediate
Language: English
Tags: advanced insane

You can find more information on the speaker's site:

I gave myself a puzzle recently: given this class:

package math;

sub add { my ($left, $right) = @_; return $left + $right }

Is it possible to call math::add() as a method, without needing to change math::add() to handle getting an invocant?

In 5 minutes, I'll cover:

- How Perl's Method Dispatch Mechanism Is Secretly Subversive
- The One Trick That Pragma Authors Don't Want You To Know
- Why Goto Isn't Such A Big Deal