Sniggerfardimungus
Sniggerfardimungus

Reputation: 11782

Can I get a list of all the modules that are currently loaded?

module_info will tell me quite a bit of what I need to know about a module - provided that I know its name. I have a need to find all modules whose names meet specific criteria (like companyname_creator_serialnumber.) I remember reading somewhere that erlang stores this information, but I am looking for a way to retrieve it.

EDIT:

all_loaded() returns all the modules that have been loaded, but if the module I'm looking for hasn't been referenced yet, it isn't in the all_loaded list.

Upvotes: 16

Views: 7859

Answers (1)

Lukas
Lukas

Reputation: 5327

Is this what you are looking for?

code:all_loaded().

Upvotes: 26

Related Questions