< Programming with Moose < Syntax
Moose does a lot of what it does by requiring other stuff. This is common in the perl world, here we will document some of the functions these other modules use that might be of interest to you.
Class::MOP
Class::MOP is the framework that Moose is built upon, check out a list of their functions on the official docs.
- Class::MOP::load_class($class_name)
- This function is awesome no more going to filenames from module names, let Class::MOP (Moose's underpinning) do it for you! load_class returns the meta for the loaded class.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.