Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Can a Perl module "inspect" itself and provide details about methods and parameters?

by Fletch (Bishop)
on Sep 26, 2019 at 21:04 UTC ( [id://11106767]=note: print w/replies, xml ) Need Help??


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

This "works", but be very aware you're breaking a fundamental tenet of OO (encapsulation) by doing so.

And by so sinning you're lining yourself up for the inevitable great vengance and furious anger which will rain down upon you (c.f. Ezekiel 25:17) when the module author decides that mauve has more RAM and changes to inside-out objects in a subsequent release and whatever hack you came up with depending on the prior internal implementation breaks.

Fine for pedagogical exploration; never do this in real code.

The cake is a lie.
The cake is a lie.
The cake is a lie.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11106767]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2024-04-24 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found