I have 2 perl modules, AA.pm calls BB.pm.
I added a new call in AA.pm to BB.pm.
AA.pm
sub Abug1
sub Asub2
BB::Bsub1
BB::Bsub2
sub Asub3
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:
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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.