NAME
CPAN::Access::AdHoc::Default::CPAN::cpanm - Get the default CPAN URL from cpanminus.
SYNOPSIS
use CPAN::Access::AdHoc::Default::CPAN::CPAN;
print CPAN::Access::AdHoc::Default::CPAN::CPAN->get_default();
DESCRIPTION
This utility class retrieves a CPAN URL from the user's PERL_CPAN_OPT
environment variable. This is the first file:
URL specified by the --mirror
option. parameter. If there is no file:
URL, it is the first URL whatever the scheme. If the PERL_CPAN_OPT
variable is defined but does not contain a --mirror
option, http://search.cpan.org/CPAN is returned.
METHODS
This class supports the following public methods:
get_default
This static method returns the CPAN repository URLs configured in cpanm. If the repository URLs can not be determined, nothing is returned.
SEE ALSO
SUPPORT
Support is by the author. Please file bug reports at http://rt.cpan.org, or in electronic mail to the author.
AUTHOR
Thomas R. Wyant, III wyant at cpan dot org
COPYRIGHT AND LICENSE
Copyright (C) 2012 by Thomas R. Wyant, III
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.