Giter VIP home page Giter VIP logo

cpan-packages's Introduction

NAME
    CPAN::Packages - OO Interface to 02packages.details.txt.gz

SYNOPSIS
      my $pks = CPAN::Packages->new(file => 't/data/02packages.details.txt.gz');

      $pks->get_header('Columns'); # or whatever

      my $ach = $pks->get_package('ACH');
      print $ach->{'package name'}."\n";
      print $ach->{version}->stringify."\n"; version.pm version
      print $ach->{path}."\n";

      $pks->write_file; # XX not implemented yet

ATTRIBUTES
  file
    The name of the file we are parsing. Should be a path to a gzipped
    version of CPAN's 02packages file, since that's what this whole module
    is for.

  header
    The header information for the packages file.

  packages
    Returns a hashref of packages, where the key XX

METHODS
  as_string
    Return this listing of packages as a string, suitable for printing as a
    file.

  get_columns_as_list
    Returns the columns that are in this packages file (as specified by the
    Columns header) as a list of strings. Note that you must have set this
    first via "set_header" or a file read.

  get_header ($name)
    Get the value of the specified header.

  get_package ($name)
    Get a hashref of info about a package.

  header_names
    Get a list of headers.

  package_names
    Get a list of package names.

  set_header ($name, $value)
    Set the header to the specified value.

  set_package ($name, \%val)
    Set a package's info.

AUTHOR
    Cory G Watson, "<gphat at cpan.org>"

ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
    Copyright 2010 Cory G Watson.

    This program is free software; you can redistribute it and/or modify it
    under the terms of either: the GNU General Public License as published
    by the Free Software Foundation; or the Artistic License.

    See http://dev.perl.org/licenses/ for more information.

cpan-packages's People

Watchers

 avatar  avatar Andrew Nelson avatar Craig Hall avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.