Packag...stants(3pm)
β¨ NAME β¨
Package::Constants β bestie, this one just lists all the constants declared in a package π like it'll go through the whole thing and hand you the receipts.
πΈ SYNOPSIS πΈ
okay so here's the vibe, straight up:
use Package::Constants;
### list the names of all constants in a given package;
@const = Package::Constants->list( __PACKAGE__ );
@const = Package::Constants->list( 'main' );
### enable debugging output
$Package::Constants::DEBUG = 1;
π DESCRIPTION π
Package::Constants lists all the constants defined in a certain package. it's giving very much "here's every constant, no cap" π₯
and like, why do you care? because it's lowkey perfect for, among other things, setting up an autogenerated @EXPORT/@EXPORT_OK for a Constants.pm file. iconic behavior honestly π
π¦ CLASS METHODS π¦
@const = Package::Constants->list( PACKAGE_NAME );
Lists the names of all the constants defined in the provided package. that's it, that's the whole job, and it ate π β¨
π GLOBAL VARIABLES π
$Package::Constants::DEBUG
When set to true, prints out debug information to STDERR about the package it is inspecting. helps to identify issues when the results are not as you expect π fr fr, this is your bestie when something's acting sus and you can't figure out why.
Defaults to false. π«Ά
π SEE ALSO π
- Module::Functions β get a list of all the public functions defined in a package. (different vibe, same energy, iykyk)
π BUG REPORTS π
Please report bugs or other issues to bug-package-constants@rt.cpan.org β not me, bestie, i'm just the messenger π
(the original page spells it out as <bug-package-constants@rt.cpan.org<gt>, so like, that's what it says, don't come for me π)
π AUTHOR π
This module by Jos Boumans <kane@cpan.org>. king shit π
β COPYRIGHT β
This library is free software; you may redistribute and/or modify it under the same terms as Perl itself. periodt π
and that's the whole page, bestie!! π¦β¨
this was Packag...stants(3pm) from the User Contributed Perl Documentation, straight outta perl v5.36.0, dated 2022-10-13 β go forth and list ur constants, mwah ππΈ
π¦ where this page comes from
- ubuntu noble: libpackage-constants-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpackage-constants-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpackage-constants-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms