CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
export/ use question


New User

Mar 19, 2008, 4:35 PM

Post #1 of 1 (1773 views)
export/ use question Can't Post

Okay, I'm confused.

I have a module, TestAPI that is used by another module... TestAPI uses API... but can't seem to see the API symbols in the local name-space.

Perl assumes I'm looking for:

and it doesn't find it... I wanted
&Bastille::API::getGlobal ... but don't want to fully specify every time, even though when I do fully specify, it works.

Here's the full file

I've already checked, and API exports the subroutine, and as you can see, I "used" it at the top of the TestAPI file.

FWIW... the full call tree is Interactive Bastille requires API, which uses TestAPI, which in turn uses API... I know there's a cycle there.... but I thought Perl was supposed handle those... and only load if the name-space hadn't already been loaded.

Any thoughts / help would be appreciated.

--- Unsure


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives