http://www.perlmonks.org?node_id=938288


in reply to Can't call method on an undefined value

When you say use B;, that's probably loading the core B, not yours. What's the path you've elided in the quoted error message?