CPAN::...:Mirror(3pm)

πŸ“¦
version 0.010 Β· 7 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 πŸ’…


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 πŸ’…πŸ’–πŸŽ€