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.