Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by educated_foo (Vicar)
on May 02, 2011 at 23:38 UTC ( [id://902592]=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

Kind of. Remember that a file can define more than one package, e.g.
$ echo 'package A; package B; 1' > A.pm; perl -MA -le 'print for keys +%INC' A.pm
If you want to know if a package is defined, rather than whether a correspondingly-named file has been loaded, the OP's approach is correct.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-26 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found