in reply to Can a Perl module "inspect" itself and provide details about methods and parameters?

I seem to remember that Perl modules are "objects" or collections of them

This isn't necessarily the case. Some Perl modules are object-orientated and are classes (not "objects" which are things instantiated from the classes) but equally some Perl modules are not object-orientated at all. Some (like the venerable CGI.pm) can be treated either as a class or not, depending on the calling code by having both an OO interface and a procedural interface within the same module.

  • Comment on Re: Can a Perl module "inspect" itself and provide details about methods and parameters?

Replies are listed 'Best First'.
Re^2: Can a Perl module "inspect" itself and provide details about methods and parameters?
by stevieb (Canon) on Sep 21, 2019 at 22:46 UTC

    WiringPi::API is exactly like that. It has both an Object Oriented interface, as well as a procedural interface, and both interfaces can be used at the same time, if desired.