CPanel Modules are reusable software components that can be used to perform a variety of tasks on your server. Modules are pieces of code that can be used by programs or other modules. They can be thought of as similar to a class in C++ or a link library in C.
cPanel modules need to be located in /usr/local/cpanel/Cpanel so that cPanel can find and load your modules when it runs.
Modules are contained in separate files. These module files need to have an extension of .pm (Perl Module).
Enjoy CPanel Hosting !!!
Read More: CPanel Plugins