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 );


"CPANPLUS::Internals::Utils" holds a few convenience functions for CPANPLUS libraries.


$cb−>_mkdir( dir => ’/some/dir’ )
creates a full path to a directory.

Returns true on success, false on failure.

$cb−>_chdir( dir => ’/some/dir’ )
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’ );
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.

Returns the name of the subroutine you’re currently in.

_get_file_contents( file => $file );
Returns the contents of a file

$cb−>_move( from => $file|$dir, to => $target );
Moves a file or directory to the target.

Returns true on success, false on failure.

$cb−>_copy( from => $file|$dir, to => $target );
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 "host" entry into an URI 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.

Returns the user’s homedir, or "cwd" 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 "VMS::Filespec::vmsify"

($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, "Foo−Bar−1.2.tar.gz" would return the following parts:

    Package:    Foo−Bar
    Version:    1.2
    Extension:  tar.gz

More Linux Commands

gnutls_x509_crt_check_revocation(3) - API function (ManPage)
This function will return check if the given certificate is revoked. It is assumed that the CRLs have been verified before. RETURNS 0 if the certificate is NOT

XmbTextPropertyToTextList(3) - convert text lists and text p
The XmbTextListToTextProperty, XwcTextListToTextProperty and Xutf8TextListToTextProperty functions set the specified XTextProperty value to a set of null-separa

XtGrabButton(3) - manage grabs (Library - Linux man page)...
XtGrabKey calls XGrabKey specifying the widgets window as the grab window if the widget is realized. The remaining arguments are exactly as for XGrabKey. If the

radeonhd(4) - AMD GPG (ATI) R5xx/R6xx/R7xx video driver.....
radeonhd is an Xorg driver for AMD GPG (ATI) R5xx/R6xx/R7xx based video cards. At the time of this writing, radeonhd has the following limitations: * Support fo

ifservices(5) - control network services with ifup/down.....
The directory /etc/sysconfig/network/ifservices-&lt;configuration_name&gt;/ is read by the script /etc/sysconfig/network/scripts/ifup-services which starts and stops

glLightfv(3gl) - set light source parameters (Man Page).....
glLight sets the values of individual light source parameters. light names the light and is a symbolic name of the form GL_LIGHT$i$, where 0 &lt;= i &lt; GL_MAX_LIGHT

kate(1) - Advanced text editor for KDE - Linux manual page
Kate is the KDE Advanced Text Editor. Kate also provides the editor part for various applications, under the name KWrite. Some of Kates many features include co

putw(3) - input and output of words (ints) - Linux man page
getw() reads a word (that is, an int) from stream. Its provided for compatibility with SVr4. We recommend you use fread(3) instead. putw() writes the word w (th

vwscanw(3ncurses) - convert formatted input from a curses wi
The scanw, wscanw and mvscanw routines are analogous to scanf [see scanf(3)]. The effect of these routines is as though wgetstr were called on the window, and t

hypotf(3) - Euclidean distance function - Linux manual page
The hypot() function returns sqrt(x*x+y*y). This is the length of the hypotenuse of a right-angled triangle with sides of length x and y, or the distance of the

xsetpointer(1x) - set an X Input device as the main pointer
Xsetpointer sets an XInput device as the main pointer. When called with the -l flag it lists the available devices. When called with the -c/+c flag, it toggles

Storable(3pm) - persistence for Perl data structures........
The Storable package brings persistence to your Perl data structures containing SCALAR, ARRAY, HASH or REF objects, i.e. anything that can be conveniently store

We can't live, work or learn in freedom unless the software we use is free.