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


In reply to Strange Class::Accessor::Chained::Fast error by Gangabass

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.