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

Gangabass has asked for the wisdom of the Perl Monks concerning the following question:

Hi, Monks. I have strange (for me) error fixing someones script. The code contain use Data::Pageset; which gives me this error message:
Error: Base class package "Class::Accessor::Chained::Fast" is empty.
    (Perhaps you need to 'use' the module which defines that package first.)
 at /usr/lib/perl5/site_perl/5.8.8/Data/Page.pm line 4
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Data/Page.pm line 4.

Callstack:
	1: Package main in File Page.pm, Sub (eval) @ Line 4
	2: Package Data::Pageset in File Pageset.pm, Sub Data::Pageset::BEGIN @ Line 6
	3: Package main in File Page.pm, Sub (eval) @ Line 4
	4: Package main in File Page.pm, Sub (eval) @ Line 4
	5: Package AUC::TEMPLATE in File TEMPLATE.pm, Sub AUC::TEMPLATE::BEGIN @ Line 473
	6: Package main in File Page.pm, Sub (eval) @ Line 4
	7: Package main in File Page.pm, Sub (eval) @ Line 4
	8: Package main in File Auction, Sub main::BEGIN @ Line 94
	9: Package main in File Page.pm, Sub (eval) @ Line 4
	10: Package main in File Page.pm, Sub (mainline) @ Line 4
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Data/Pageset.pm line 6.
On line 6 of Data/Pageset.pm i have just use Data::Page; and the 4th line of Data/Page.pm is standard use base 'Class::Accessor::Chained::Fast'; and this line gives me this empty error.

This thing is strange for me because than i run perl -MData::Page -e "1" from command line i have no errors. So i need a hint how i can fix this issue.

Thanks a lot.
Roman