™.. CPANPLUS::Internals::Utils - Online Linux Manual PageSection : 3pm
Updated : 2009-05-03
Source : perl v5.10.1
Note : Perl Programmers Reference Guide

NAMECPANPLUS::Internals::Utils

SYNOPSIS​ my $bool = $cb−>_mkdir( dir => 'blah' ); ​ my $bool = $cb−>_chdir( dir => 'blah' ); ​ my $bool = $cb−>_rmdir( dir => 'blah' ); ​ ​ my $bool = $cb−>_move( from => '/some/file', to => '/other/file' ); ​ my $bool = $cb−>_move( from => '/some/dir', to => '/other/dir' ); ​ ​ my $cont = $cb−>_get_file_contents( file => '/path/to/file' ); ​ ​ ​ my $version = $cb−>_perl_version( perl => $^X );

DESCRIPTION\*(C`CPANPLUS::Internals::Utils\*(C'\fR holds a few convenience functions for ​CPANPLUS libraries.

METHODS

$cb>_mkdir( dir => '/some/dir' )\*(C`_mkdir\*(C'\fR creates a full path to a directory. Returns true on success, false on failure.

$cb>_chdir( dir => '/some/dir' )\*(C`_chdir\*(C'\fR changes directory to a dir. Returns true on success, false on failure.

$cb>_rmdir( dir => '/some/dir' );Removes a directory completely, even if it is non-empty. Returns true on success, false on failure.

$cb>_perl_version ( perl => 'some/perl/binary' );\*(C`_perl_version\*(C'\fR returns the version of a certain perl binary. It does this by actually running a command. Returns the perl version on success and false on failure.

$cb>_version_to_number( version => $version );Returns a proper module version, or '0.0' if none was available.

$cb>_whoamiReturns the name of the subroutine you're currently in.

_get_file_contents( file => $file );Returns the contents of a file Moves a file or directory to the target. Returns true on success, false on failure. Moves a file or directory to the target. Returns true on success, false on failure.

$cb>_mode_plus_w( file => '/path/to/file' );Sets the +w bit for the file. Returns true on success, false on failure.

$uri = $cb>_host_to_uri( scheme => SCHEME, host => HOST, path => PATH );Turns a CPANPLUS::Config style \*(C`host\*(C'\fR entry into an \s-1URI\s0 string. Returns the uri on success, and false on failure

$cb>_vcmp( VERSION, VERSION );Normalizes the versions passed and does a '<=>' on them, returning the result.

$cb>_home_dirReturns the user's homedir, or \*(C`cwd\*(C'\fR if it could not be found

$path = $cb>_safe_path( path => $path );Returns a path that's safe to us on Win32 and VMS. Only cleans up the path on Win32 if the path exists. On VMS, it encodes dots to _ using \*(C`VMS::Filespec::vmsify\*(C'\fR

($pkg, $version, $ext) = $cb>_split_package_string( package => PACKAGE_STRING );Splits the name of a CPAN package string up into its package, version and extension parts. For example, \*(C`Foo\-Bar\-1.2.tar.gz\*(C'\fR would return the following parts: ​ Package: Foo−Bar ​ Version: 1.2 ​ Extension: tar.gz
0
Johanes Gumabo
Data Size   :   14,889 byte
man-CPANPLUS::Internals::Utils.3pmBuild   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   5 / 257,210
Visitor ID   :     :  
Visitor IP   :   18.222.182.226   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|252|CPANPLUS::Internals::Utils.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|CPANPLUS::Internals::Utils.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|252|CPANPLUS::Internals::Utils.3pm|41|br══─}─══|'br══─}─══ )         (htmlprn|149|CPANPLUS::Internals::Utils.3pm|41|'br══─}─══ |'br══─}─══ )         (rof_nr_x|149|CPANPLUS::Internals::Utils.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (rof_unit_scale_px|41|CPANPLUS::Internals::Utils.3pm|51/52|F|.ie \nF ══─{─══. de IX )         (rof_if|19|CPANPLUS::Internals::Utils.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (htmlprn|149|CPANPLUS::Internals::Utils.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX )         (rof_escape_sequence|91|CPANPLUS::Internals::Utils.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2" )         (parse_manual_page_|252|CPANPLUS::Internals::Utils.3pm|57|══─}─══|.══─}─══ )         (htmlprn|149|CPANPLUS::Internals::Utils.3pm|57|.══─}─══ |.══─}─══ )         (rof_escape_sequence|91|CPANPLUS::Internals::Utils.3pm|151|\*(C`CPANPLUS::Internals::Utils\*(C'\fR holds a few convenience functions for |\&\f(CW\*(C`CPANPLUS::Internals::Utils\*(C'\fR holds a few convenience functions for )         (rof_escape_sequence|91|CPANPLUS::Internals::Utils.3pm|158|\*(C`_mkdir\*(C'\fR creates a full path to a directory. |\&\f(CW\*(C`_mkdir\*(C'\fR creates a full path to a directory. )         (rof_escape_sequence|91|CPANPLUS::Internals::Utils.3pm|164|\*(C`_chdir\*(C'\fR changes directory to a dir. |\&\f(CW\*(C`_chdir\*(C'\fR changes directory to a dir. )         (rof_escape_sequence|91|CPANPLUS::Internals::Utils.3pm|176|\*(C`_perl_version\*(C'\fR returns the version of a certain perl binary. |\&\f(CW\*(C`_perl_version\*(C'\fR returns the version of a certain perl binary. )         (rof_escape_sequence|91|CPANPLUS::Internals::Utils.3pm|209|\*(C`host\*(C'\fR entry into an \s-1URI\s0 string. |Turns a CPANPLUS::Config style \f(CW\*(C`host\*(C'\fR entry into an \s-1URI\s0 string. )         (rof_escape_sequence|91|CPANPLUS::Internals::Utils.3pm|219|\*(C`cwd\*(C'\fR if it could not be found |Returns the user's homedir, or \f(CW\*(C`cwd\*(C'\fR if it could not be found )         (rof_escape_sequence|91|CPANPLUS::Internals::Utils.3pm|227|\*(C`VMS::Filespec::vmsify\*(C'\fR |On \s-1VMS\s0, it encodes dots to _ using \f(CW\*(C`VMS::Filespec::vmsify\*(C'\fR )         (rof_escape_sequence|91|CPANPLUS::Internals::Utils.3pm|234|\*(C`Foo\-Bar\-1.2.tar.gz\*(C'\fR would return the following parts: |For example, \f(CW\*(C`Foo\-Bar\-1.2.tar.gz\*(C'\fR would return the following parts: )