Base class package "Bar" is empty. (Perhaps you need to 'use' the module which defines that package first.) at test.pl line 10 BEGIN failed--compilation aborted at test.pl line 10.