---
name: "CPAN::Common::Index::Mirror"
section: "3pm"
platform: "linux"
package: "libcpan-common-index-perl"
version: "0.010-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/CPAN::Common::Index::Mirror"
---

# CPAN::Common::Index::Mirror(3pm)

Search index via CPAN mirror flatfiles

## NAME

CPAN::Common::Index::Mirror - Search index via CPAN mirror flatfiles

## VERSION

version 0.010

## SYNOPSIS

```
  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" }
  );
```

## DESCRIPTION

This module implements a CPAN::Common::Index that retrieves and searches 02packages.details.txt and 01mailrc.txt indices.

The default mirror is \<http://www.cpan.org/\>.  This is a globally balanced fast mirror and is a great choice if you don't have a local fast mirror.

## ATTRIBUTES

### mirror

URI to a CPAN mirror.  Defaults to `"http://www.cpan.org/"`.

### cache

Path to a local directory to store copies of the source indices.  Defaults to a temporary directory if not specified.

## AUTHOR

David Golden \<dagolden@cpan.org\>

## 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
```
