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

Re: getting the name of the module in runtime and calling a function from that module

by Sinister (Friar)
on Jun 03, 2002 at 20:39 UTC ( [id://171328]=note: print w/replies, xml ) Need Help??


in reply to getting the name of the module in runtime and calling a function from that module

All modules filenames can be found in the keys of %INC. The values of %INC hold the /path/to/lib

little-old-me didnt read to carefull, sorry for that!

er formait hyarya.
-- "Life is a house and the next tornado is never far away"
-- "lovely by nature"

  • Comment on Re: getting the name of the module in runtime and calling a function from that module

Replies are listed 'Best First'.
Re: Re: getting the name of the module in runtime and calling a function from that module
by jsprat (Curate) on Jun 03, 2002 at 21:15 UTC
    The only problem with this is that %INC is only populated when you "require", "use", or "do". If the script hasn't already loaded the module, that element will not exist in the %INC hash.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2025-07-10 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.