MetaCP...::File(3pm)
๐ MetaCP...::File(3pm) โ the File data object, bestie edition ๐
okay so this is MetaCPAN::Client::File, a Perl module from the User Contributed Perl Documentation, and it's literally just a File data object. that's the whole vibe. it's the little wrapper that holds one file's worth of MetaCPAN truth. let's get into it ๐ซถ
โจ VERSION โจ
version 2.044000
๐ธ DESCRIPTION ๐ธ
A MetaCPAN file entity object.
like. it's a file. it's an object. it's an entity. slay ๐
๐ ATTRIBUTES ๐
every one of these is a thing you can ask this object about itself. no skips, no cuts, all of them are here:
statusโ gives you the release status, and it's one of"backpan","cpan", or"latest". vibe check passed โจdateโ an ISO8601 datetime string, like"2016-11-19T12:41:46", telling you when the file got uploaded. timestamped, periodt ๐authorโ the author's PAUSE id. that's their whole identity on the CPAN streets ๐ชชmaturityโ either"release"or"developer". two options, no in-between, pick a lane ๐directoryโ a boolean: does this path represent a directory or not? yes/no, iconic behavior ๐indexedโ a boolean: is the content indexed or not? ๐documentationโ the name of the module this file contains docs for. heads up though: this one may beundef. not me getting undef'd ๐ญidโ the file's internal MetaCPAN id. the backstage pass ๐๏ธauthorizedโ a boolean: was this file part of an authorized upload? โversionโ the distribution version that contains this file.version_numifiedโ the numified version of the distribution that contains the file. yes it's numified. no we don't make the rules ๐ขreleaseโ the release that contains this file, something like"Moose-2.2004". iconic name ngl ๐ฎbinaryโ a boolean: does this file contain binary content? ๐งฌnameโ the File's name, without any directory path included. just the name, bestie โ๏ธpathโ the file's path inside the distribution archive, relative to the root of the archive ๐บ๏ธabstractโ if the file contains POD with a"NAME"section, this attribute holds the abstract portion of that name. cute lil summary energy ๐deprecatedโ the deprecated field value for this file. it's giving expired, fr fr ๐descriptionโ if the file contains POD with a"DESCRIPTION"section, this attribute contains that description ๐distributionโ the name of the distribution that contains the file ๐ฆlevelโ a 0-indexed indication of how many directories deep this file is, relative to the archive root. (0-indexed!! programmers stay unhinged ๐ )slocโ if the file contains code, this holds the number of lines of code in the file. sloc = source lines of code, iykyk โจ๏ธslopโ if the file contains POD, this holds the number of lines of POD in the file. slop!! yes really, slop ๐ฒmimeโ the file's mime type ๐ญmoduleโ if the file contains module indexed by PAUSE, this attribute holds an arrayref of hashrefs, one for each module. those hashrefs have these keys:nameโ the module name.indexedโ whether or not the file is indexed by MetaCPAN.authorizedโ whether or not the module is part of an authorized upload.versionโ the version of the module that this file contains.version_numifiedโ the numified version of the module that this file contains.associated_podโ a path you can use with the"MetaCPAN::Client->file"method to get the file that contains POD for this module. in most cases that's gonna be the same file as the one that contains this"module"data. convenient โจ
pod_linesโ An arrayref. that's it. that's the description. short king ๐statโ a hashref containing stat() all information about the file ๐ธ the keys are:mtimeโ the Unix epoch of the file's last modified time โณmodeโ the file's mode, as an integer, not an octal representation. read that again, bestie!! ๐จsizeโ the file's size in bytes ๐
download_urlโ a URL for the distribution archive that contains this file. go get it ๐
๐ฅ METHODS ๐ฅ
๐ง pod
my $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. four flavors, all valid, all slay ๐
๐ฆ source
my $source = $module->source();
Returns the source code for the file. the actual real code, periodt โจ๏ธ๐
๐
metacpan_url
Returns a link to the file source page on MetaCPAN. clickable excellence ๐โจ
๐ AUTHORS ๐
- Sawyer X <xsawyerx@cpan.org>
- Mickey Nasriachi <mickey@cpan.org>
the icons who built this. we love them ๐ซถ
๐ COPYRIGHT AND LICENSE ๐
This 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.
lowkey the most generous license setup โ do what you want, just keep the same terms. bestie behavior fr fr ๐
and that's the whole page, no notes ๐ this was documented under perl v5.40.1 and stamped 2026-07-05 โ shoutout to those exact numbers, and to MetaCP...::File(3pm) for being the moment. mwah, go read some source code, you got this ๐๐ธ
๐ฆ where this page comes from
- ubuntu stonking: libmetacpan-client-perl 2.044000-1 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms