Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Core module: Attribute::Handlers behaviourby enigma (Novice) |
on Oct 21, 2012 at 10:11 UTC ( [id://1000192]=note: print w/replies, xml ) | Need Help?? |
Hello PerlMonks, I understand the trick "BrowserUk" has suggested. I tried to implement the same as below but it is always giving me error as Can't locate object method "new" via package "Module"Module.pm
Test.pl
When i'm changing the execution phase in ATTR to INIT,CHECK - module gets compiled successfully but ATTR TRACE is not called. And when i change the phase to BEGIN, I'm getting the above error message. I need your help to understand why my Test.pl is not able to find "new()" method in Module.pm when Attribute::Handers are called at BEGIN phase. Thanks
In Section
Seekers of Perl Wisdom
|
|