Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: How to tell if a package is loaded

by tchrist (Pilgrim)
on May 02, 2011 at 23:25 UTC ( [id://902587]=note: print w/replies, xml ) Need Help??


in reply to Re: How to tell if a package is loaded
in thread How to tell if a package is loaded

If all you want to do is play with %INC, instead of actually inspecting the symbol table properly, then you might as well use the standard core module, Module::Loaded.

Replies are listed 'Best First'.
Re^3: How to tell if a package is loaded
by mifflin (Curate) on May 03, 2011 at 00:14 UTC
    What version of Perl did Module::Loaded become core in? I'm using 5.8.8 and it is not available there.
    $ perl -MModule::Loaded Can't locate Module/Loaded.pm in @INC (@INC contains: /usr/lib64/perl5 +/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5 +.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_ +64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5 +/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/li +b/perl5/5.8.8 .). BEGIN failed--compilation aborted.
      $ corelist Module::Loaded Module::Loaded was first released with perl v5.9.4
      I'm on 5.12.2.

      See also New modules

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-25 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found