Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: Namespace debugging advice

by dorianwinterfeld (Acolyte)
on Jan 28, 2016 at 15:23 UTC ( [id://1153880]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Namespace debugging advice
in thread Namespace debugging advice

Thanks! You helped me solve it! It was a namespace problem. I ran your test and there are 1353 subs in main. Then I printed the package name at the top of the lib file, db2access.pli. It was not "main", it was "FR_html_tools", which it had inherited from a PM file. I printed out the subs in FR_html_tools and there were all the missing subs, including the one I need, &DB2QUERY. Now I can call the sub with it's namespace; FR_html_tools::DB2QUERY() and the cgi script finds it fine. Thanks again. There are many PM files in this code and it's hard to keep track of all the package names.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1153880]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-24 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found