- $conf = CPANPLUS::Configure->new( );
- $bool = $conf->can_save;
- $bool = $conf->save( $where );
- @opts = $conf->options( $type );
- $make = $conf->get_program('make');
- $verbose = $conf->set_conf( verbose => 1 );
This module deals with all the configuration issues for CPANPLUS. Users can use objects created by this module to alter the behaviour of CPANPLUS.
Please refer to the
documentation on how to
This method returns a new object. Normal users will never need to
method, but instead retrieve the desired object via
a method call on a
Controls wether or not additional user configurations are to be loaded
or not. Defaults to
Initialize the configure with other config files than just the default 'CPANPLUS::Config'.
to load user/system configurations
option is provided, your disk will be
examined again to see if there are new config files that
could be read. Defaults to
Returns true on success, false on failure.
Check if we can save the configuration to the specified file. If no file is provided, defaults to your personal config.
Returns true if the file can be saved, false otherwise.
Saves the configuration to the package name you provided.
If this package is not
, it will
be saved in your
.cpanplus directory, otherwise it will
be attempted to be saved in the system wide directory.
If no argument is provided, it will default to your personal config.
Returns the full path to the file if the config was saved, false otherwise.
Returns a list of all valid config options given a specific type
(like for example
) or false if the type does
Accessors that start with a
are marked private -- regular users
should never need to use these.
documentation for what items can be
set and retrieved.
style accessors merely retrieves one or more desired
style accessors set the current value for one
or more config options and will return true upon success, false on
style accessor adds a new key to a config key.
Currently, the following accessors exist:
Simple configuration directives like verbosity and favourite shell.
Location of helper programs.
Locations of where to put what files for CPANPLUS.
Locations and names of source files locally.
Locations and names of source files remotely.
Special settings pertaining to the fetching of files.
Please report bugs or other issues to <firstname.lastname@example.org<gt>.
This module by Jos Boumans <email@example.com>.
The CPAN++ interface (of which this module is a part of) is copyright (c) 2001 - 2007, Jos Boumans <firstname.lastname@example.org>. All rights reserved.
This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.