05 Feb 2021 07:26:16 UTC
- Distribution: CPAN-PackageDetails
- Module version: 0.263
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (77 / 0 / 0)
- KwaliteeBus factor: 1
- 78.17% Coverage
- License: artistic_2
- Perl: v5.8.0
- Activity24 month
- Download (49.76KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionBDFOY brian d foy
CPAN::PackageDetails::Entry - Handle a single record of 02packages.details.txt.gz
Used internally by CPAN::PackageDetails
An entry is a single line from 02packages.details.txt that maps a package name to a source. It's a whitespace-separated list that has the values for the column identified in the "columns" field in the header.
By default, there are three columns: package name, version, and path.
Inside a CPAN::PackageDetails object, the actual work and manipulation of the entries are handled by delegate classes specified in
entry_class). At the moment these are immutable, so you'd have to subclass this module to change them.
- new( FIELD1 => VALUE1 [, FIELD2 => VALUE2] )
Create a new entry
Access values of the entry.
- as_string( @column_names )
Formats the Entry as text. It joins with whitespace the values for the column names you pass it. You get the newline automatically.
Any values that are not defined (or the empty string) turn into the literal string 'undef' to preserve the columns in the output.
This source is in Github:
brian d foy,
Copyright © 2009-2021, brian d foy <firstname.lastname@example.org>. All rights reserved.
You may redistribute this under the terms of the Artistic License 2.0.
Module Install Instructions
To install CPAN::PackageDetails, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install CPAN::PackageDetails
For more information on module installation, please visit the detailed CPAN module installation guide.