in reply to Inheritance strangeness
rename B.pm to BB.pm and change the package name and "use base" statement in C.pm and this will work:
#!/usr/bin/perl use C; C->foo(); [download]