---
name: "CPAN::SQLite::Info"
section: "3pm"
platform: "linux"
package: "libcpan-sqlite-perl"
version: "0.220-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/CPAN::SQLite::Info"
---

# CPAN::SQLite::Info(3pm)

extract information from CPAN indices

## NAME

CPAN::SQLite::Info - extract information from CPAN indices

## VERSION

version 0.220

## DESCRIPTION

This module extracts information from the CPAN indices *$CPAN/modules/02packages.details.txt.gz* and *$CPAN/authors/01mailrc.txt.gz*.

A `"CPAN::SQLite::Info"` object is created with

```
    my $info = CPAN::SQLite::Info->new(CPAN => $cpan);
```

where `$cpan` specifies the top-level CPAN directory underneath which the index files are found. Calling

```
    $info->fetch_info();
```

will result in the object being populated with 3 hash references:

- •

  `"$info->{dists}"`

  This contains information on distributions. Keys of this hash reference are the distribution names, with the associated value being a hash reference with keys of

  - "dist\_vers" - the version of the CPAN file

    - "dist\_file" - the CPAN filename

    - "cpanid" - the CPAN author id

    - "dist\_abs" - a description, if available

    - "modules" - specifies the modules present in the distribution:

    ```
      for my $module (keys %{$info->{$distname}->{modules}}) {
        print "Module: $module\n";
      }
    ```

- •

  `"$info->{mods}"`

  This contains information on modules. Keys of this hash reference are the module names, with the associated values being a hash reference with keys of

  - "dist\_name" - the distribution name containing the module

    - "mod\_vers" - the version

    - "mod\_abs" - a description, if available

    - •

  `"$info->{auths}"`

  This contains information on CPAN authors. Keys of this hash reference are the CPAN ids, with the associated value being a hash reference with keys of

  - "fullname" - the author's full name

    - "email" - the author's email address

    ## SEE ALSO

CPAN::SQLite::Index
