|
NAMEMetaCPAN::Client::File - A File data objectVERSIONversion 2.029000DESCRIPTIONA MetaCPAN file entity object.ATTRIBUTESstatusReturns a release status like "backpan", "cpan", or "latest".dateAn ISO8601 datetime string like "2016-11-19T12:41:46" indicating when the file was uploaded.authorThe author's PAUSE id.maturityThis will be either "release" or "developer".directoryA boolean indicating whether or not the path represents a directory.indexedA boolean indicating whether or not the content is indexed.documentationThe name of the module for which this file contains docs. This may be "undef"idThe file's internal MetaCPAN id.authorizedA boolean indicating whether or not this file was part of an authorized upload.versionThe distribution version that contains this file.version_numifiedThe numified version of the distribution that contains the file.releaseThe release that contains this file, which will be something like "Moose-2.2004".binaryA boolean indicating whether or not this file contains binary content.nameThe File's name, without any directory path included.pathThe file's path within the distribution archive, relative to the root of the archive.abstractIf the file contains POD with a "NAME" section, then this attribute will include the abstract portion of the name.deprecatedThe deprecated field value for this file.descriptionIf the file contains POD with a "DESCRIPTION" section, then this attribute will contain that description.distributionThe name of the distribution that contains the file.levelA 0-indexed indication of how many directories deep this file is, relative to the archive root.slocIf the file contains code, this will contain the number of lines of code in the file.slopIf the file contains POD, this will contain the number of lines of POD in the file.mimeThe file's mime type.moduleIf the file contains module indexed by PAUSE, then this attribute contains an arrayref of hashrefs, one for each module. The hashrefs have the following keys:
pod_linesAn arrayref.statA hashref containing "stat()" all information about the file. The keys are:
download_urlA URL for the distribution archive that contains this file.METHODSpodmy $pod = $module->pod(); # default = plain my $pod = $module->pod($type); Returns the POD content for the module/file. Takes a type as argument. Supported types: plain, html, x-pod, x-markdown. sourcemy $source = $module->source(); Returns the source code for the file. metacpan_urlReturns a link to the file source page on MetaCPAN.AUTHORS
COPYRIGHT AND LICENSEThis software is copyright (c) 2016 by Sawyer X.This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Visit the GSP FreeBSD Man Page Interface. |