URI::cpan(3)
welcome to URI::cpan(3) from User Contributed Perl Documentation π«Ά bestie, this is the page for URLs that refer to things on the CPAN, and weβre gonna get into it.
π NAME π
URI::cpan β URLs that refer to things on the CPAN. Thatβs the whole vibe: CPAN URLs, handled. β¨
π VERSION π
version 1.009 π
β thatβs the version, periodt.
β¨ SYNOPSIS β¨
okay so hereβs the actual synopsis, no cap:
use URI::cpan;
my $uri = URI->new('cpan:///distfile/RJBS/URI-cpan-1.000.tar.gz');
$uri->author; # => RJBS
$uri->dist_name; # => URI-cpan
$uri->dist_version; # => 1.000
other forms of cpan: URI include:
cpan:///author/RJBS
and these next ones are reserved for likely future use (iykyk):
cpan:///dist
cpan:///module
cpan:///package
πΈ PERL VERSION πΈ
okay so the perl version tea β: this library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.
Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. thatβs the rule, bestie π
β οΈ WARNINGS β οΈ
real talk: URI objects are difficult to subclass, so I have not (yet?) taken the time to remove mutability from the objects. This means that you can probably alter a URI::cpan object into a state where it is no longer valid.
Please donβt change the contents of these objects after construction. fr fr, donβt do it π
π¦ SEE ALSO π¦
go look at URI::cpan::author and URI::cpan::distfile β thatβs the see also, bestie. β¨
π THANKS π
This code is derived from code written at Pobox.com by Hans Dieter Pearcey. Dieter helped thrash out this new implementation, too. π«Ά
π AUTHOR π
Ricardo SIGNES <cpan@semiotic.systems> π
π«Ά CONTRIBUTOR π«Ά
Ricardo Signes <rjbs@semiotic.systems> π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2009 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
okay bye bestie π
β this page is from perl v5.42.0, dated 2024-03-08, and itβs the URI::cpan(3) page. mwah π
π¦ where this page comes from
- opensuse-leap 16.0: perl-URI-cpan 1.9.0-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms