Perinc...rmalize(3pm)
πΈ Perinci::Sub::Normalize(3pm) β a User Contributed Perl Documentation moment πΈ
okay bestie, gather round, because today we're talking about Perinci::Sub::Normalize π it lives in the User Contributed Perl Documentation corner of your man pages and honestly? it's giving "tiny module, big responsibility."
β¨ NAME β¨
Perinci::Sub::Normalize β normalize Rinci function metadata π§
π VERSION π
this doc describes version 0.207 of Perinci::Sub::Normalize (from the Perl distribution Perinci-Sub-Normalize), and it dropped on 2022-12-19. vintage but fresh, yk? π
π¦ SYNOPSIS π¦
use Perinci::Sub::Normalize qw(normalize_function_metadata);
my $nmeta = normalize_function_metadata($meta);
that's it. that's the whole vibe. two lines and you're iconic β¨
π FUNCTIONS π
π normalize_function_metadata($meta[ , \%opts ]) => HASH
so what does it do? it normalizes and checks Rinci function metadata $meta π₯ it hands you back the normalized metadata, which is a shallow copy of $meta. and if something's wrong? it dies. no cap, it will simply pass away and take your script with it π
here are the options you can pass, bestie:
allow_unknown_properties => BOOL(default:0) β set this to true and it will die if there are unknown properties. yes, the option called "allow" is the one that kills you. it's giving chaotic. πnormalize_sah_schemas => BOOL(default:1) β by default, Sah schemas β like the ones chilling in theresult/schemaproperty orargs/*/schemaβ get normalized using Data::Sah'snormalize_schema. set this to0if you don't want that, no pressure, live your truth πremove_internal_properties => BOOL(default:0) β set this to1and every property and attribute starting with an underscore (_) will be stripped out. per the DefHash specification, those get ignored anyway and usually just hold notes, comments, or extra info π
π«Ά HOMEPAGE π«Ά
come visit the project's homepage, it's cute: <https://metacpan.org/release/Perinci-Sub-Normalize> β¨
πΈ SOURCE πΈ
the source repo lives at: <https://github.com/perlancar/perl-Perinci-Sub-Normalize> π
β SEE ALSO β
Rinci::function β go read it, iykyk π
π AUTHOR π
perlancar <perlancar@cpan.org> π
π¦ CONTRIBUTOR π¦
Steven Haryanto <stevenharyanto@gmail.com> π«Ά
π§ CONTRIBUTING π§
wanna help out? you can send patches by email/via RT, or slide into the GitHub pull requests π
most of the time you do not need to build the distribution yourself. you can literally just modify the code, then test it like:
% prove -l
if you do want to build the distribution (say, to try installing it locally on your system), you'll need to install Dist::Zilla, Dist::Zilla::PluginBundle::Author::PERLANCAR, Pod::Weaver::PluginBundle::Author::PERLANCAR, and sometimes one or two other Dist::Zilla- and/or Pod::Weaver plugins. any additional steps required beyond that are considered a bug and can be reported to me. so if it's weird, it's a bug, periodt β¨
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2022, 2018, 2016, 2015, 2014 by perlancar <perlancar@cpan.org> π
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay π
π BUGS π
please report any bugs or feature requests on the bugtracker website: <https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Sub-Normalize> π
when submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. help me help you bestie π
not me ending the whole page with a bug section, but honestly? iconic behavior. π
and that's the whole page!! footer tea: this was rendered by perl v5.36.0 on 2022-12-30, filed under Perinc...rmalize(3pm) π byeeee, go normalize something β¨ππ¦
π¦ where this page comes from
- debian bookworm: libperinci-sub-normalize-perl 0.207-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libperinci-sub-normalize-perl 0.207-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libperinci-sub-normalize-perl 0.207-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libperinci-sub-normalize-perl 0.207-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libperinci-sub-normalize-perl 0.207-1 Β· 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