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?? |
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.
In Section
Seekers of Perl Wisdom
|
|