1BackPAN::Index::ReleaseU(s3e)r Contributed Perl DocumentaBtaicoknPAN::Index::Release(3)
2
3
4
6 BackPAN::Index::Release - A single release of a distribution
7
9 my $b = BackPAN::Index->new();
10
11 # Find version 1.2.3 of Acme-Colour
12 my $release = $b->release("Acme-Colour", '1.2.3');
13
14 print " CPANID: " . $release->cpanid . "\n";
15 print " Date: " . $release->date . "\n";
16 print " Dist: " . $release->dist . "\n";
17 print "Distvname: " . $release->distvname . "\n";
18 print " Filename: " . $release->filename . "\n";
19 print " Maturity: " . $release->maturity . "\n";
20 print " Path: " . $release->path . "\n";
21 print " Version: " . $release->version . "\n";
22
24 BackPAN::Index::Release objects represent releases, individual
25 tarballs/zip files, of a distribution on BackPAN.
26
27 For example, Acme-Pony-1.2.3.tar.gz is a release of the Acme-Pony
28 distribution.
29
31 cpanid
32 my $cpanid = $release->cpanid;
33
34 Returns the PAUSE ID of the author of the release.
35
36 date
37 my $date = $release->date;
38
39 Returns the date of the release, in UNIX epoch seconds.
40
41 dist
42 my $dist_name = $release->dist;
43
44 Returns the name of the distribution this release belongs to.
45
46 distvname
47 my $distvname = $release->distvname;
48
49 Returns the name of the distribution, hyphen, and version.
50
51 filename
52 my $filename = $release->filename;
53
54 Returns the filename of the release, just the file part.
55
56 maturity
57 my $maturity = $release->maturity;
58
59 Returns the maturity of the release.
60
61 path
62 my $path = $release->path;
63
64 Returns the full path on CPAN to the release. This is a BackPAN::File
65 object.
66
67 version
68 my $version = $release->version;
69
70 Returns the version of the release:
71
72 as_hash
73 my $data = $release->as_hash;
74
75 Returns a hash ref containing the data inside $release.
76
78 Leon Brocard <acme@astray.com> and Michael G Schwern
79 <schwern@pobox.com>
80
82 Copyright (C) 2005-2009, Leon Brocard
83
84 This module is free software; you can redistribute it or modify it
85 under the same terms as Perl itself.
86
88 BackPAN::Index, BackPAN::Index::Dist, BackPAN::Index::File
89
90
91
92perl v5.34.0 2022-01-20 BackPAN::Index::Release(3)