CPAN::...:Mirror(3pm)
π CPAN::...:Mirror(3pm) π
okay bestie, so this is a page from the User Contributed Perl Documentation, and the module it's serving is called CPAN::Common::Index::Mirror. Let's get into it π¦
β¨ NAME β¨
CPAN::Common::Index::Mirror β search an index via CPAN mirror flatfiles π
πΈ VERSION πΈ
version 0.010 β¨
π SYNOPSIS π
okay so here's the vibe, copy-paste ready:
use CPAN::Common::Index::Mirror;
# default mirror is http://www.cpan.org/
$index = CPAN::Common::Index::Mirror->new;
# custom mirror
$index = CPAN::Common::Index::Mirror->new(
{ mirror => "http://cpan.cpantesters.org" }
);
no cap, that's literally it π«Ά
π DESCRIPTION π
So this module implements a CPAN::Common::Index that goes and retrieves and searches two little index files: 02packages.details.txt and 01mailrc.txt. Those are the flatfiles, iykyk πβ¨
The default mirror is <http://www.cpan.org/>. Bestie, this one is a globally balanced fast mirror and it's a great choice if you don't have a local fast mirror of your own. Main character mirror energy fr fr π
π ATTRIBUTES π
π¦ mirror
URI to a CPAN mirror. Defaults to "http://www.cpan.org/". π
π cache
Path to a local directory where the copies of the source indices get stored. If you don't specify one, it defaults to a temporary directory. So like, it'll find somewhere to crash, don't stress πβ¨
π AUTHOR π
David Golden <dagolden@cpan.org> β the icon who did this π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2013 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
and that's the whole page, bestie, we ate and left no crumbs π½οΈβ¨ this was CPAN::...:Mirror(3pm), perl v5.36.0, dated 2022-12-09 β mwah, periodt π
ππ
π¦ where this page comes from
- debian bookworm: libcpan-common-index-perl 0.010-2 Β· Apache-2.0
- debian trixie: libcpan-common-index-perl 0.010-2 Β· Apache-2.0
- ubuntu noble: libcpan-common-index-perl 0.010-2 Β· Apache-2.0
- ubuntu resolute: libcpan-common-index-perl 0.010-2 Β· Apache-2.0
- ubuntu stonking: libcpan-common-index-perl 0.010-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms