AidanLee has asked for the wisdom of the Perl Monks concerning the following question:
Looking at line 251, we have:Can't locate object method "TIEHASH" via package "Resources::Action::V +iew" at /home/v2/cms/Shared/lib/Resource/Base.pm line 251.
pretty straightforward. We're calling TIEHASH through the Resources::Action::View package. Looking in the modules, we see:$object = tie( %hash, "Resources::$object_properties->{type}" );
which all leaves me wondering where the typo is. Any ideas why the child class can't find the TIEHASH method?package Resources::Action::View; use base 'Resource::Base'; ...and... package Resource::Base; use base 'Resource::Tied'; ...and... package Resource::Tied; ...which contains: sub TIEHASH { return bless( {}, shift ); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Inheritence Issues (can't find TIEHASH via inheritence) (require?)
by tye (Sage) on Jun 05, 2003 at 15:31 UTC | |
by AidanLee (Chaplain) on Jun 05, 2003 at 15:42 UTC |