MetaCPA...PI::File(3)
π MetaCPAN::API::File π
okay so bestie, welcome to MetaCPAN::API::File β it's a page from the User Contributed Perl Documentation manual, and it's literally just here to explain one little role that gives MetaCPAN::API the power to go grab file info for you. no cap. π¦
β¨ NAME β¨
MetaCPAN::API::File β file information for MetaCPAN::API π
πΈ VERSION πΈ
version 0.51
π DESCRIPTION π
so like, this role is the little helper that hands MetaCPAN::API the ability to fetch file information about modules and distribution releases. that's the whole vibe. it's giving backstage pass to the file tree. π§
π METHODS π
π file
here's the main character. you call it like this:
my $result = $mcpan->file(
author => 'DOY',
release => 'Moose-2.0201',
path => 'lib/Moose.pm',
);
orrr, if you're feeling minimal:
# or
my $result = $mcpan->file(
author => 'DOY',
release => 'Moose-2.0201',
);
or, my personal fave, just yeet a name at it:
# or
my $result1 = $mcpan->file('MetaCPAN::API');
my $result2 = $mcpan->file( id => 'EMfoAvoYhHpUK8MVJSkm4KN5GmY' );
so what's actually happening? it searches MetaCPAN for a module or for one specific release, and then it hands you back the file/directory information. iconic. and heads up β if you leave path out, it goes and gets the info for the root directory instead. periodt. π
π«Ά AUTHOR π«Ά
Sawyer X <xsawyerx@cpan.org> β thank you for your service, legend π
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2011 by Sawyer X.
it's free software, bestie β you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so go wild, responsibly. β¨
okay and for the cute little sign-off at the bottom: this beauty lives at perl v5.42.0, dated 2025-07-25, filed under MetaCPA...PI::File(3) (yes the truncation is doing its thing, we respect it π). mwah, go fetch some files πππ¦
π¦ where this page comes from
- fedora 43: perl-MetaCPAN-API 0.51-24.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms