Dear Monks,
as a self written base class I use for all my objects is growing steadily, I try to focus it a bit more on my specific demands and outsource more common functionality. One of these features is provided by Class::Accessor. Reading the documentation I cannot see where this is difficult to use or where I might make any errors but the following code:
BEGIN{
...
use Class::Accessor;
our ( $VERSION, $LAST_ERROR, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS
+ );
@ISA = qw( Class::Accessor );
...
Variant->mk_accessor( qw(name nodes) );
}
exits on compilation with the following message:
Can't locate object method "mk_accessor" via package "Variant" at Vari
+ant.pm line 31.
I wonder if someone with some experience using this class can spot the error as I have spent almost a day on this yet no proper clue what is going wrong.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.