CPAN::...ecfile(3perl)
π CPAN::Plugin::Specfile π
okay bestie, so this is CPAN::Plugin::Specfile from the Perl Programmers Reference Guide β it's a lowkey proof-of-concept implementation of a trivial CPAN::Plugin. like, the tiniest little plugin soul you've ever met π
β¨ NAME β¨
CPAN::Plugin::Specfile β a proof of concept implementation of a trivial CPAN::Plugin π¦
β¨ SYNOPSIS β¨
# once in the cpan shell
o conf plugin_list push CPAN::Plugin::Specfile
# make permanent
o conf commit
# any time in the cpan shell to write a spec file
test Acme::Meta
# disable
# if it is the last in plugin_list:
o conf plugin_list pop
# otherwise, determine the index to splice:
o conf plugin_list
# and then use splice, e.g. to splice position 3:
o conf plugin_list splice 3 1
periodt π
that's the whole flow. push it, commit it, run a test, and pop or splice it later when you're done with it.
β¨ DESCRIPTION β¨
so here's the tea β: this plugin is implemented as a post-test hook, which means it writes a specfile after every successful test run. and the content? also written straight to your terminal. no cap. β¨
As a side effect, the timestamps of the written specfiles reflect the linear order of all dependencies. it's giving chronological receipts π§Ύ
WARNING π¨ bestie, listen: this code is just a small demo how to use the plugin system of the CPAN shell, not a full fledged spec file writer. Do not expect new features in this plugin. it is what it is, and what it is is a demo π
πΈ OPTIONS πΈ
The target directory to store the spec files in can be set using dir as in
o conf plugin_list push CPAN::Plugin::Specfile=dir,/tmp/specfiles-000042
The default directory for this is the plugins/CPAN::Plugin::Specfile directory in the cpan_home directory. so if you don't say anything, that's where the lil specfiles go π π
β¨ AUTHOR β¨
Andreas Koenig <andk@cpan.org>, Branislav Zahradnik <barney@cpan.org> β absolute legends, we love them, we thank them ππ«Ά
and that's the whole vibe, bestie! π this was pulled from perl v5.44.0, dated 2026-10-17, and it lives under the manual name CPAN::...ecfile(3perl) β slay, bye ππ¦πΈ
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND 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