On 1/31/06, Aaron Trevena <[EMAIL PROTECTED]> wrote: > Hi Matt, > > looking at this : > > FWIW I was using Maypole 2.09 but upgraded to 2.10 and tried it again. It > > didn't seem to make much difference because > > MyApp::Default->can('my_action') doesn't seem to want to return anything. > > I'd say you need to fix that problem - isolated from maypole before > going any further, as until that method is visible at all, even > without any method attribute checking. > > cheers, >
Yep. the only way that could happen (afik) is if compilation stopped in MayApp::Default before it got to that method. Or perhaps you are not "using" or "requiring" MyApp::Default in your driver. I did that a few times. I wrote code in a .pm file but never said : MyApp::Default->require || die $UNIVERSAL::require::ERROR; so the code was never seen. Dut CDBI:;Loader had done its job so the error was a little aloof. Also, the die clause there is important and should stop the annoying half compiled .pm file errors. This is because by default require will stop compiling on error but not die so you could have a typo half way down your file and anything above it will be compiled and work but any subs after it will not exist to the computer. Frustrating to say the least. hth, peter ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Maypole-users mailing list Maypole-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/maypole-users