In terms of Perl OO, what exactly does -> do?
For example I make a call main:
$result = a::b->mymethod( );
In the package where I define mymethod(), I use the following:
my( $class ) = @_;
In main, I clearly don’t pass any arguments to mymethod(), so where is the $class argument coming from? Has anyone got a good explanation for this or a document that explains this?
The “Method Invocation” section of the perlobj documentation explains. The added emphasis is mine.