in reply to Methods supporting both package and OOP style calls
my $foo = new MyPackage(); $foo->foo('test1'); MyPackage->foo('test2'); MyPackage::foo('test3'); # not handled by the case above
...it's a little trickier, because in the second case "MyPackage" is just passed as a scalar. I believe the only ways to distinguish between the second and third situations are:
|
|---|