jimt999 has asked for the wisdom of the Perl Monks concerning the following question:
I added the call to BB::Bsub2 It compiles with out any warning or error. It executes ASub2 just fine and works. The problem is that Asub3 seems to no longer be defined when the call to BB:Bsub2 is present. When I try to access the web page that is served up by AA::Asub3 the error reported is:AA.pm sub Abug1 sub Asub2 BB::Bsub1 BB::Bsub2 sub Asub3
Error executing run mode 'Asub3' : can't locate object method 'Asub3' via package "AA::Aa" in ... perl\site\lib\CGI\Application.pm line #143
I launched the program under the debugger and listed the present subroutines with "S AA". When the call to BB::Bsub2 is present, the AA::Asub3 doesn't show up. Remove the call to BB:Bsub2 and in the debugger "S AA" shows AA::Asub3 and everything works fine.This is running strawberry perl v5.12.1.0 on Windows. Any pointers on how to debug this very much appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Appl can't find sub
by davido (Cardinal) on Jun 10, 2014 at 17:49 UTC | |
|
Re: CGI::Appl can't find sub
by boftx (Deacon) on Jun 10, 2014 at 17:52 UTC | |
|
Re: CGI::Appl can't find sub
by TomDLux (Vicar) on Jun 11, 2014 at 06:02 UTC | |
by jimt999 (Initiate) on Jun 11, 2014 at 15:30 UTC | |
by poj (Abbot) on Jun 11, 2014 at 19:00 UTC | |
by jimt999 (Initiate) on Jun 11, 2014 at 20:59 UTC | |
by boftx (Deacon) on Jun 11, 2014 at 21:25 UTC | |
|
Re: CGI::Appl can't find sub
by jimt999 (Initiate) on Jun 13, 2014 at 21:41 UTC | |
by Anonymous Monk on Jun 14, 2014 at 01:05 UTC | |
by jimt999 (Initiate) on Jun 14, 2014 at 03:16 UTC | |
by Anonymous Monk on Jun 14, 2014 at 09:31 UTC |