BackPA...Release(3pm)
π NAME π
BackPAN::Index::Release β it's literally one single release of a distribution, bestie. That's it, that's the whole vibe. β¨
πΈ SYNOPSIS πΈ
okay so here's how you actually use this thing:
my $b = BackPAN::Index->new();
# Find version 1.2.3 of Acme-Colour
my $release = $b->release("Acme-Colour", '1.2.3');
print " CPANID: " . $release->cpanid . "\n";
print " Date: " . $release->date . "\n";
print " Dist: " . $release->dist . "\n";
print "Distvname: " . $release->distvname . "\n";
print " Filename: " . $release->filename . "\n";
print " Maturity: " . $release->maturity . "\n";
print " Path: " . $release->path . "\n";
print " Version: " . $release->version . "\n";
no cap, that's the whole flow. π¦
π DESCRIPTION π
so like, BackPAN::Index::Release objects represent releases β the individual tarballs/zip files β of a distribution on BackPAN. π
for example (and I need you to picture this): Acme-Pony-1.2.3.tar.gz is a release of the Acme-Pony distribution. one tarball, one release, one icon. periodt. π
β¨ METHODS β¨
π cpanid
my $cpanid = $release->cpanid;
gives you the PAUSE ID of whoever authored the release. the author's whole identity, in one little string. π«Ά
π date
my $date = $release->date;
the date of the release, but make it UNIX epoch seconds. raw, unfiltered, integer-core. β°
π dist
my $dist_name = $release->dist;
the name of the distribution this release belongs to. which family this tarball is part of. π§
π distvname
my $distvname = $release->distvname;
returns the name of the distribution, then a hyphen, then the version. like a lil name tag with the version stitched on. π
π filename
my $filename = $release->filename;
the filename of the release β and listen, it's just the file part. no directories, no drama, just the name. π
π maturity
my $maturity = $release->maturity;
the maturity of the release. how grown-up is this tarball feeling today. π
π path
my $path = $release->path;
the full path on CPAN to the release. heads up though β this is a BackPAN::File object, not a plain string. it's giving object, not string. π
π version
my $version = $release->version;
returns the version of the release. the number. the whole point. β
π as_hash
my $data = $release->as_hash;
returns a hash ref containing all the data inside $release. everything, in one tidy lil bundle. obsessed. π
π AUTHOR π
Leon Brocard <acme@astray.com> and Michael G Schwern <schwern@pobox.com> β legends, both of them. π«Ά
πΈ COPYRIGHT πΈ
Copyright (C) 2005-2009, Leon Brocard
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
π₯ SEE ALSO π₯
BackPAN::IndexBackPAN::Index::DistBackPAN::Index::File
go read those too, iykyk. β¨
okay bestie that's the whole page π this was BackPA...Release(3pm) from the User Contributed Perl Documentation, running on perl v5.42.0, dated 2025-07-25 β slay, bye! π
π
π¦ where this page comes from
- fedora 43: perl-BackPAN-Index 0.42-35.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