
gumby
New User
Mar 19, 2008, 4:35 PM
Post #1 of 1
(1031 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: &Bastille::TestAPI::getGlobal 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 http://bastille-linux.cvs.sourceforge.net/bastille-linux/dev/working_tree/Bastille/Bastille/TestAPI.pm?revision=1.50&view=markup 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
|