MyClass->classMethod($someParameter);

my $foo = 'MyClass';
$foo->classMethod($someParameter);



$myInstance->method($someParameter);


$myInstance->anotherMethod;



MyClass::classMethod('MyClass', $someParameter);
MyClass::method($myInstance, $someParameter);