Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\CPANPLUS\Internals\Utils.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/Internals/Utils.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/Internals/Utils.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="#_cb___mkdir__dir______some_dir___">$cb->_mkdir( dir => '/some/dir' )</a></li> <li><a href="#_cb___chdir__dir______some_dir___">$cb->_chdir( dir => '/some/dir' )</a></li> <li><a href="#_cb___rmdir__dir______some_dir____">$cb->_rmdir( dir => '/some/dir' );</a></li> <li><a href="#_cb___perl_version___perl_____some_perl_binary____">$cb->_perl_version ( perl => 'some/perl/binary' );</a></li> <li><a href="#_cb___version_to_number__version_____version___">$cb->_version_to_number( version => $version );</a></li> <li><a href="#_cb___whoami">$cb->_whoami</a></li> <li><a href="#_get_file_contents__file_____file___">_get_file_contents( file => $file );</a></li> <li><a href="#_cb___mode_plus_w__file______path_to_file____">$cb->_mode_plus_w( file => '/path/to/file' );</a></li> <li><a href="#_uri____cb___host_to_uri__scheme____scheme__host____host__path____path___">$uri = $cb->_host_to_uri( scheme => SCHEME, host => HOST, path => PATH );</a></li> <li><a href="#_cb___vcmp__version__version___">$cb->_vcmp( VERSION, VERSION );</a></li> <li><a href="#_cb___home_dir">$cb->_home_dir</a></li> <li><a href="#_path____cb___safe_path__path_____path___">$path = $cb->_safe_path( path => $path );</a></li> <li><a href="#__pkg___version___ext_____cb___split_package_string__package____package_string___">($pkg, $version, $ext) = $cb->_split_package_string( package => PACKAGE_STRING );</a></li> </ul> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <hr /> <h1><a name="name">NAME</a></h1> <p>CPANPLUS::Internals::Utils</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> my $bool = $cb->_mkdir( dir => 'blah' ); my $bool = $cb->_chdir( dir => 'blah' ); my $bool = $cb->_rmdir( dir => 'blah' );</pre> <pre> my $bool = $cb->_move( from => '/some/file', to => '/other/file' ); my $bool = $cb->_move( from => '/some/dir', to => '/other/dir' );</pre> <pre> my $cont = $cb->_get_file_contents( file => '/path/to/file' );</pre> <pre> my $version = $cb->_perl_version( perl => $^X );</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p><code>CPANPLUS::Internals::Utils</code> holds a few convenience functions for CPANPLUS libraries.</p> <p> </p> <hr /> <h1><a name="methods">METHODS</a></h1> <p> </p> <h2><a name="_cb___mkdir__dir______some_dir___">$cb->_mkdir( dir => '/some/dir' )</a></h2> <p><code>_mkdir</code> creates a full path to a directory.</p> <p>Returns true on success, false on failure.</p> <p> </p> <h2><a name="_cb___chdir__dir______some_dir___">$cb->_chdir( dir => '/some/dir' )</a></h2> <p><code>_chdir</code> changes directory to a dir.</p> <p>Returns true on success, false on failure.</p> <p> </p> <h2><a name="_cb___rmdir__dir______some_dir____">$cb->_rmdir( dir => '/some/dir' );</a></h2> <p>Removes a directory completely, even if it is non-empty.</p> <p>Returns true on success, false on failure.</p> <p> </p> <h2><a name="_cb___perl_version___perl_____some_perl_binary____">$cb->_perl_version ( perl => 'some/perl/binary' );</a></h2> <p><code>_perl_version</code> returns the version of a certain perl binary. It does this by actually running a command.</p> <p>Returns the perl version on success and false on failure.</p> <p> </p> <h2><a name="_cb___version_to_number__version_____version___">$cb->_version_to_number( version => $version );</a></h2> <p>Returns a proper module version, or '0.0' if none was available.</p> <p> </p> <h2><a name="_cb___whoami">$cb->_whoami</a></h2> <p>Returns the name of the subroutine you're currently in.</p> <p> </p> <h2><a name="_get_file_contents__file_____file___">_get_file_contents( file => $file );</a></h2> <p>Returns the contents of a file</p> <p>Moves a file or directory to the target.</p> <p>Returns true on success, false on failure.</p> <p>Moves a file or directory to the target.</p> <p>Returns true on success, false on failure.</p> <p> </p> <h2><a name="_cb___mode_plus_w__file______path_to_file____">$cb->_mode_plus_w( file => '/path/to/file' );</a></h2> <p>Sets the +w bit for the file.</p> <p>Returns true on success, false on failure.</p> <p> </p> <h2><a name="_uri____cb___host_to_uri__scheme____scheme__host____host__path____path___">$uri = $cb->_host_to_uri( scheme => SCHEME, host => HOST, path => PATH );</a></h2> <p>Turns a CPANPLUS::Config style <code>host</code> entry into an URI string.</p> <p>Returns the uri on success, and false on failure</p> <p> </p> <h2><a name="_cb___vcmp__version__version___">$cb->_vcmp( VERSION, VERSION );</a></h2> <p>Normalizes the versions passed and does a '<=>' on them, returning the result.</p> <p> </p> <h2><a name="_cb___home_dir">$cb->_home_dir</a></h2> <p>Returns the user's homedir, or <code>cwd</code> if it could not be found</p> <p> </p> <h2><a name="_path____cb___safe_path__path_____path___">$path = $cb->_safe_path( path => $path );</a></h2> <p>Returns a path that's safe to us on Win32 and VMS.</p> <p>Only cleans up the path on Win32 if the path exists.</p> <p>On VMS, it encodes dots to _ using <code>VMS::Filespec::vmsify</code></p> <p> </p> <h2><a name="__pkg___version___ext_____cb___split_package_string__package____package_string___">($pkg, $version, $ext) = $cb->_split_package_string( package => PACKAGE_STRING );</a></h2> <p>Splits the name of a CPAN package string up in it's package, version and extension parts.</p> <p>For example, <code>Foo-Bar-1.2.tar.gz</code> would return the following parts:</p> <pre> Package: Foo-Bar Version: 1.2 Extension: tar.gz</pre> <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/Internals/Utils.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