jorba has asked for the wisdom of the Perl Monks concerning the following question:
if I have an AXDocument module is there a parameter like $self-ModuleName which will return "AXDocument"
e.g.package AXControl; use Moose; #Object Attributes has 'System' => (is => 'rw', isa => 'Str', required => 1); has 'ToolsHandle' => (is => 'rw', isa => 'Object'); has 'SysHandle' => (is => 'rw', isa => 'Object'); sub BUILD { $self->shift; # should print "This module is a AXControl module.\n"; print "This module is a " . $self->ModuleName . " module.\n"; }
As a follow up, if the first question is not barking mad, is there also a way to interrogate the attributes of the module and their nature?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Moose identify module type
by stevieb (Canon) on Mar 16, 2018 at 20:30 UTC | |
|
Re: Moose identify module type
by choroba (Cardinal) on Mar 16, 2018 at 23:54 UTC | |
by jorba (Sexton) on Mar 17, 2018 at 00:34 UTC |