in reply to Invoking method in another package
If I had to do something of the sort, I'd rather write:
Barfoo::thisone( $fb );
It's a little more explicit that I'm treating a method as a regular function. I've only ever done this in tests, where I'm passing a mock object to the method I want to test.
In your case, I would call it a mistake. thisone() doesn't really look like an object method. I'd make it into a class method (or just a normal function) and skip the method-looking invocation.
|
|---|