Package: perl-Devel-EnforceEncapsulation (0.51-34.fc44)
Find access violations to blessed objects
Encapsulation is the practice of creating subroutines to access the properties of a class instead of accessing those properties directly. The advantage of good encapsulation is that the author is permitted to change the internal implementation of a class without breaking its usage. Object-oriented programming in Perl is most commonly implemented via blessed hashes. This practice makes it easy for users of a class to violate encapsulation by simply accessing the hash values directly. Although less common, the same applies to classes implemented via blessed arrays, scalars, filehandles, etc. This module is a hack to block those direct accesses. If you try to access a hash value of an object from its own class, or a superclass or subclass, all goes well. If you try to access a hash value from any other package, an exception is thrown. The same applies to the scalar value of a blessed scalar, entry in a blessed array, etc. To be clear: this class is NOT intended for strict enforcement of encapsulation. If you want bullet-proof encapsulation, use inside-out objects or the like. Instead, this module is intended to be a development or debugging aid in catching places where direct access is used against classes implemented as blessed hashes. To repeat: the encapsulation enforced here is a hack and is easily circumvented. Please use this module for good (finding bugs), not evil (making life harder for downstream developers).
Package information
- Homepage
- [https://metacpan.org/release/Devel-EnforceEncapsulation]
- License
- GPL-1.0-or-later OR Artistic-1.0-Perl
- Супровідник downstream-пакета
- pghmcfcObserved Nov 24, 2026 [source]
- Пакет джерела
- [perl-Devel-EnforceEncapsulation]
- Software project
- [perl-Devel-EnforceEncapsulation]
Versions and downloads for perl-Devel-EnforceEncapsulation
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.51-34.fc4444 / everything | noarchFedora 44 · Everything · x86_64 | 17 KiB | 12 KiB | list of files | perl-Devel-EnforceEncapsulation-0.51-34.fc44.noarch.rpm |
| 0.51-34.fc4444 / everything | noarchFedora 44 · Everything · aarch64 | 17 KiB | 12 KiB | list of files | perl-Devel-EnforceEncapsulation-0.51-34.fc44.noarch.rpm |
About these downloads
Кожен рядок: метадані індексу пакетів для однієї версії, архітектури, набору й репозиторію. Назви, URL і розміри зі джерела; посилання є змінним місцем отримання, не перерозповсюдженням OpenFactory.
Dependencies and recommendations for perl-Devel-EnforceEncapsulation
dep: perl(Carp)
Package not available
dep: perl(English)
Package not available
dep: perl(overload)
Package not available
dep: perl(strict)
Package not available
dep: perl(warnings)
Package not available
dep: [perl-libs]
The libraries for the perl run-time
Шляхи файлів пакета (8)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/share/doc/perl-Devel-EnforceEncapsulation
- /usr/share/doc/perl-Devel-EnforceEncapsulation/CHANGES
- /usr/share/doc/perl-Devel-EnforceEncapsulation/README
- /usr/share/licenses/perl-Devel-EnforceEncapsulation
- /usr/share/licenses/perl-Devel-EnforceEncapsulation/LICENSE
- /usr/share/man/man3/Devel::EnforceEncapsulation.3pm.gz
- /usr/share/perl5/vendor_perl/Devel
- /usr/share/perl5/vendor_perl/Devel/EnforceEncapsulation.pm
Field source: Fedora 44 Everything x86_64
