Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: use statement seemingly ignored

by BillKSmith (Monsignor)
on Nov 22, 2022 at 20:55 UTC ( [id://11148308]=note: print w/replies, xml ) Need Help??


in reply to Re^3: use statement seemingly ignored
in thread use statement seemingly ignored

I seem to have been a bit careless in my use of the word 'defined'. The original error message tells us that the function 'getMeetInfo' was not defined in the namespace NCPS::Results. This means that it was not successfully imported from the module NCPS::Meets. The [almost] same error message from the workaround with the fully qualified name tells us that the function is not even defined in own namespace. There is no function to import. (It is unlikely that the NCPS::Meets module is even loaded.) We should look for the error in the way modules are loaded, before even considering the way functions are imported. The existing maze of nested BEGIN blocks is probably an incorrect attempt to allow modules to use each other.
Bill

Replies are listed 'Best First'.
Re^5: use statement seemingly ignored
by ikegami (Patriarch) on Nov 23, 2022 at 13:58 UTC

    oh, I misread. I thought you said it *worked* when using the full name.

    Yeah, if using the full name doesn't work, then when I said doesn't apply.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2024-04-25 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found