Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\CPANPLUS\Configure.html
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>../lib/CPANPLUS/Configure.pm</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:" /> </head> <body style="background-color: white"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> ../lib/CPANPLUS/Configure.pm</span></strong></big> </td></tr> </table> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#synopsis">SYNOPSIS</a></li> <li><a href="#description">DESCRIPTION</a></li> <li><a href="#methods">METHODS</a></li> <ul> <li><a href="#_configure___cpanplus__configure__new__load_configs____bool__">$Configure = CPANPLUS::Configure->new( load_configs => BOOL )</a></li> <li><a href="#_bool____configure__init___rescan____bool__">$bool = $Configure->init( [rescan => BOOL])</a></li> <li><a href="#can_save____config_location___">can_save( [$config_location] )</a></li> <li><a href="#_file____conf__save____package_name___">$file = $conf->save( [$package_name] )</a></li> <li><a href="#options__type____type__">options( type => TYPE )</a></li> </ul> <li><a href="#accessors">ACCESSORS</a></li> <ul> <li><a href="#get_something__item___item__item__________">get_SOMETHING( ITEM, [ITEM, ITEM, ... ] );</a></li> <li><a href="#set_something__item____val___item____val__item____val__________">set_SOMETHING( ITEM => VAL, [ITEM => VAL, ITEM => VAL, ... ] );</a></li> <li><a href="#add_something__item____val___item____val__item____val__________">add_SOMETHING( ITEM => VAL, [ITEM => VAL, ITEM => VAL, ... ] );</a></li> </ul> <li><a href="#bug_reports">BUG REPORTS</a></li> <li><a href="#author">AUTHOR</a></li> <li><a href="#copyright">COPYRIGHT</a></li> <li><a href="#see_also">SEE ALSO</a></li> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <hr /> <h1><a name="name">NAME</a></h1> <p>CPANPLUS::Configure</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> $conf = CPANPLUS::Configure->new( );</pre> <pre> $bool = $conf->can_save; $bool = $conf->save( $where );</pre> <pre> @opts = $conf->options( $type );</pre> <pre> $make = $conf->get_program('make'); $verbose = $conf->set_conf( verbose => 1 );</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>This module deals with all the configuration issues for CPANPLUS. Users can use objects created by this module to alter the behaviour of CPANPLUS.</p> <p>Please refer to the <code>CPANPLUS::Backend</code> documentation on how to obtain a <code>CPANPLUS::Configure</code> object.</p> <p> </p> <hr /> <h1><a name="methods">METHODS</a></h1> <p> </p> <h2><a name="_configure___cpanplus__configure__new__load_configs____bool__">$Configure = CPANPLUS::Configure->new( load_configs => BOOL )</a></h2> <p>This method returns a new object. Normal users will never need to invoke the <code>new</code> method, but instead retrieve the desired object via a method call on a <code>CPANPLUS::Backend</code> object.</p> <p>The <code>load_configs</code> parameter controls wether or not additional user configurations are to be loaded or not. Defaults to <code>true</code>.</p> <p> </p> <h2><a name="_bool____configure__init___rescan____bool__">$bool = $Configure->init( [rescan => BOOL])</a></h2> <p>Initialize the configure with other config files than just the default 'CPANPLUS::Config'.</p> <p>Called from <code>new()</code> to load user/system configurations</p> <p>If the <code>rescan</code> option is provided, your disk will be examined again to see if there are new config files that could be read. Defaults to <code>false</code>.</p> <p>Returns true on success, false on failure.</p> <p> </p> <h2><a name="can_save____config_location___">can_save( [$config_location] )</a></h2> <p>Check if we can save the configuration to the specified file. If no file is provided, defaults to your personal config.</p> <p>Returns true if the file can be saved, false otherwise.</p> <p> </p> <h2><a name="_file____conf__save____package_name___">$file = $conf->save( [$package_name] )</a></h2> <p>Saves the configuration to the package name you provided. If this package is not <code>CPANPLUS::Config::System</code>, it will be saved in your <code>.cpanplus</code> directory, otherwise it will be attempted to be saved in the system wide directory.</p> <p>If no argument is provided, it will default to your personal config.</p> <p>Returns the full path to the file if the config was saved, false otherwise.</p> <p> </p> <h2><a name="options__type____type__">options( type => TYPE )</a></h2> <p>Returns a list of all valid config options given a specific type (like for example <code>conf</code> of <code>program</code>) or false if the type does not exist</p> <p> </p> <hr /> <h1><a name="accessors">ACCESSORS</a></h1> <p>Accessors that start with a <code>_</code> are marked private -- regular users should never need to use these.</p> <p>See the <code>CPANPLUS::Config</code> documentation for what items can be set and retrieved.</p> <p> </p> <h2><a name="get_something__item___item__item__________">get_SOMETHING( ITEM, [ITEM, ITEM, ... ] );</a></h2> <p>The <code>get_*</code> style accessors merely retrieves one or more desired config options.</p> <p> </p> <h2><a name="set_something__item____val___item____val__item____val__________">set_SOMETHING( ITEM => VAL, [ITEM => VAL, ITEM => VAL, ... ] );</a></h2> <p>The <code>set_*</code> style accessors set the current value for one or more config options and will return true upon success, false on failure.</p> <p> </p> <h2><a name="add_something__item____val___item____val__item____val__________">add_SOMETHING( ITEM => VAL, [ITEM => VAL, ITEM => VAL, ... ] );</a></h2> <p>The <code>add_*</code> style accessor adds a new key to a config key.</p> <p>Currently, the following accessors exist:</p> <dl> <dt><strong><a name="set_get_conf" class="item">set|get_conf</a></strong> <dd> <p>Simple configuration directives like verbosity and favourite shell.</p> </dd> </li> <dt><strong><a name="set_get_program" class="item">set|get_program</a></strong> <dd> <p>Location of helper programs.</p> </dd> </li> <dt><strong><a name="set_get_build" class="item">_set|_get_build</a></strong> <dd> <p>Locations of where to put what files for CPANPLUS.</p> </dd> </li> <dt><strong><a name="set_get_source" class="item">_set|_get_source</a></strong> <dd> <p>Locations and names of source files locally.</p> </dd> </li> <dt><strong><a name="set_get_mirror" class="item">_set|_get_mirror</a></strong> <dd> <p>Locations and names of source files remotely.</p> </dd> </li> <dt><strong><a name="set_get_fetch" class="item">_set|_get_fetch</a></strong> <dd> <p>Special settings pertaining to the fetching of files.</p> </dd> </li> </dl> <p> </p> <hr /> <h1><a name="bug_reports">BUG REPORTS</a></h1> <p>Please report bugs or other issues to <<a href="mailto:bug-cpanplus@rt.cpan.org<gt>">bug-cpanplus@rt.cpan.org<gt></a>.</p> <p> </p> <hr /> <h1><a name="author">AUTHOR</a></h1> <p>This module by Jos Boumans <<a href="mailto:kane@cpan.org">kane@cpan.org</a>>.</p> <p> </p> <hr /> <h1><a name="copyright">COPYRIGHT</a></h1> <p>The CPAN++ interface (of which this module is a part of) is copyright (c) 2001 - 2007, Jos Boumans <<a href="mailto:kane@cpan.org">kane@cpan.org</a>>. All rights reserved.</p> <p>This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.</p> <p> </p> <hr /> <h1><a name="see_also">SEE ALSO</a></h1> <p><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/CPANPLUS/Backend.html">the CPANPLUS::Backend manpage</a>, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/CPANPLUS/Configure/Setup.html">the CPANPLUS::Configure::Setup manpage</a>, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/CPANPLUS/Config.html">the CPANPLUS::Config manpage</a></p> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> ../lib/CPANPLUS/Configure.pm</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de