ungerma has asked for the wisdom of the Perl Monks concerning the following question:
It is contained in another class, where I try to access b:use Class::Struct; struct A => { b => '%',
Perl quits with "Not a CODE reference". I find that interesting, because when I debug my code, it says:$self->{ReferenceToA}->b($key)
Thanks for enlightening me! Martinp ($self->{ReferenceToA}->can('b')) CODE(0xe91738)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Class::Struct - Not a CODE referemce
by almut (Canon) on Jun 07, 2010 at 13:07 UTC | |
by ungerma (Initiate) on Jun 08, 2010 at 14:02 UTC | |
by almut (Canon) on Jun 08, 2010 at 14:45 UTC | |
by ungerma (Initiate) on Jun 08, 2010 at 16:17 UTC |