Dist::...pender(3pm)
π NAME π
Dist::Zilla::Plugin::Prepender β ok bestie, this one prepends lines at the top of your perl files. Yes. That's the whole gig. And it slays.
(also the manual page shows up as Dist::...pender(3pm), from the User Contributed Perl Documentation set β you know, the little truncated-glam name π)
β¨ VERSION β¨
version 2.004 π
π¦ SYNOPSIS π¦
so in your dist.ini you're gonna write this:
[Prepender]
copyright = 0
line = use strict;
line = use warnings;
skip = t/data/.+\.pl
skip = something-else-unnecessary
and that's it, that's the whole vibe β¨
πΈ DESCRIPTION πΈ
Okay so here's the tea: this plugin takes the lines you specify and prepends them into each Perl module or program inside your distribution. And for scripts that have a shebang line? The lines get inserted just after it β because obviously we're not gonna ruin a shebang, that would be a crime π
Why would you even want this? Bestie, two reasons, both iconic:
- enforcing a lil set of pragmas across all your files β and since pragmas are lexical, they'll be active for the whole file πͺ
- adding some copyright comments, which is what the fsf recommends π
The module accepts the following options in its dist.ini section:
copyrightβ whether to insert a boilerplate copyright comment. defaults to true. βlineβ anything you want to add. may be specified multiple times. no default. πskipβ regexp of file names to not prepend to. may be specified multiple times. no default. π
fr fr,lineandskipcan show up over and over, and there's no default for either one β you gotta actually say what you want, bestie π
π₯ SEE ALSO π₯
You can look for information on this module at:
- Search CPAN
<http://search.cpan.org/dist/Dist-Zilla-Plugin-Prepender>
- See open / report bugs
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dist-Zilla-Plugin-Prepender>
- Mailing-list (same as Dist::Zilla)
<http://www.listbox.com/subscribe/?list_id=139292>
- Git repository
<http://github.com/jquelin/dist-zilla-plugin-prepender>
- AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Dist-Zilla-Plugin-Prepender>
- CPAN Ratings
<http://cpanratings.perl.org/d/Dist-Zilla-Plugin-Prepender>
π AUTHOR π
Jerome Quelin π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2009 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. ποΈ
and that's the whole page bestie β this was perl v5.36.0, dated 2022-10-13, and yes it's giving Dist::...pender(3pm) energy the whole way through πβ mwah π
π¦ where this page comes from
- ubuntu noble: libdist-zilla-plugin-prepender-perl 2.004-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdist-zilla-plugin-prepender-perl 2.004-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdist-zilla-plugin-prepender-perl 2.004-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