Ricardo SIGNES > URI-cpan-1.004 > URI::cpan

Download:
URI-cpan-1.004.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.004   Source   Latest Release: URI-cpan-1.005

NAME ^

URI::cpan - URLs that refer to things on the CPAN

SYNOPSIS ^

  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

Reserved for likely future use are:

  cpan:///dist
  cpan:///module
  cpan:///package

WARNINGS ^

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.

SEE ALSO ^

URI::cpan::author and URI::cpan::distfile

THANKS ^

This code is derived from code written at Pobox.com by Hans Dieter Pearcey. Dieter helped thrash out this new implementation, too.

COPYRIGHT ^

Copyright 2009 Ricardo SIGNES. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: