Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I have 2 perl modules, calls I added a new call in to 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\ 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.

In reply to CGI::Appl can't find sub by jimt999

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-05-25 02:14 GMT
Find Nodes?
    Voting Booth?

    No recent polls found