™.. CPANPLUS::Internals::Extract - Online Linux Manual PageSection : 3pm
Updated : 2009-02-12
Source : perl v5.10.1
Note : Perl Programmers Reference Guide
NAMECPANPLUS::Internals::Extract
SYNOPSIS ### for source files ###
$self−>_gunzip( file => 'foo.gz', output => 'blah.txt' );
### for modules/packages ###
$dir = $self−>_extract( module => $modobj,
extractdir => '/some/where' );
DESCRIPTIONCPANPLUS::Internals::Extract extracts compressed files for CPANPLUS. It can do this by either a pure perl solution (preferred) with the use of \*(C`Archive::Tar\*(C'\fR and \f(CW\*(C`Compress::Zlib\*(C'\fR, or with binaries, like \*(C`gzip\*(C'\fR and \f(CW\*(C`tar\*(C'\fR. The flow looks like this: $cb−>_extract
Delegate to Archive::Extract
METHODS
$dir = _extract( module => $modobj, [perl => '/path/to/perl', extractdir => '/path/to/extract/to', prefer_bin => BOOL, verbose => BOOL, force => BOOL] )\*(C`_extract\*(C'\fR will take a module object and extract it to \f(CW\*(C`extractdir\*(C'\fR if provided, or the default location which is obtained from your config. The file name is obtained by looking at \*(C`$modobj\->status\->fetch\*(C'\fR and will be parsed to see if it's a tar or zip archive. If it's a zip archive, \*(C`_\|_unzip\*(C'\fR will be called, otherwise \f(CW\*(C`_\|_untar\*(C'\fR will be called. In the unlikely event the file is of neither format, an error will be thrown. \*(C`_extract\*(C'\fR takes the following options: module A \*(C`CPANPLUS::Module\*(C'\fR object. This is required. extractdir The directory to extract the archive to. By default this looks something like:
/CPANPLUS_BASE/PERL_VERSION/BUILD/MODULE_NAME prefer_bin A flag indicating whether you prefer a pure perl solution, ie \*(C`Archive::Tar\*(C'\fR or \f(CW\*(C`Archive::Zip\*(C'\fR respectively, or a binary solution like \*(C`unzip\*(C'\fR and \f(CW\*(C`tar\*(C'\fR. perl The path to the perl executable to use for any perl calls. Also used to determine the build version directory for extraction. verbose Specifies whether to be verbose or not. Defaults to your corresponding config entry. force Specifies whether to force the extraction or not. Defaults to your corresponding config entry. All other options are passed on verbatim to \*(C`_\|_unzip\*(C'\fR or \f(CW\*(C`_\|_untar\*(C'\fR. Returns the directory the file was extracted to on success and false on failure. 0
Johanes Gumabo
Data Size : 9,607 byte
man-CPANPLUS::Internals::Extract.3pmBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 175,241
Visitor ID : :
Visitor IP : 3.144.25.130 :
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.05
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_|249|CPANPLUS::Internals::Extract.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|CPANPLUS::Internals::Extract.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|CPANPLUS::Internals::Extract.3pm|41|br══─}─══|'br══─}─══
) (htmlprn|149|CPANPLUS::Internals::Extract.3pm|41|'br══─}─══ |'br══─}─══
) (rof_nr_x|149|CPANPLUS::Internals::Extract.3pm|51/52|\nF|.ie \nF ══─{─══. de IX
) (rof_unit_scale_px|41|CPANPLUS::Internals::Extract.3pm|51/52|F|.ie \nF ══─{─══. de IX
) (rof_if|19|CPANPLUS::Internals::Extract.3pm|51/52|\nF|.ie \nF ══─{─══. de IX
) (htmlprn|149|CPANPLUS::Internals::Extract.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX
) (rof_escape_sequence|91|CPANPLUS::Internals::Extract.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2"
) (parse_manual_page_|249|CPANPLUS::Internals::Extract.3pm|57|══─}─══|.══─}─══
) (htmlprn|149|CPANPLUS::Internals::Extract.3pm|57|.══─}─══ |.══─}─══
) (rof_escape_sequence|91|CPANPLUS::Internals::Extract.3pm|148|\*(C`Archive::Tar\*(C'\fR and \f(CW\*(C`Compress::Zlib\*(C'\fR, or with binaries, like |use of \f(CW\*(C`Archive::Tar\*(C'\fR and \f(CW\*(C`Compress::Zlib\*(C'\fR, or with binaries, like
) (rof_escape_sequence|91|CPANPLUS::Internals::Extract.3pm|149|\*(C`gzip\*(C'\fR and \f(CW\*(C`tar\*(C'\fR. |\&\f(CW\*(C`gzip\*(C'\fR and \f(CW\*(C`tar\*(C'\fR.
) (rof_escape_sequence|91|CPANPLUS::Internals::Extract.3pm|162|\*(C`_extract\*(C'\fR will take a module object and extract it to \f(CW\*(C`extractdir\*(C'\fR |\&\f(CW\*(C`_extract\*(C'\fR will take a module object and extract it to \f(CW\*(C`extractdir\*(C'\fR
) (rof_escape_sequence|91|CPANPLUS::Internals::Extract.3pm|166|\*(C`$modobj\->status\->fetch\*(C'\fR |The file name is obtained by looking at \f(CW\*(C`$modobj\->status\->fetch\*(C'\fR
) (rof_escape_sequence|91|CPANPLUS::Internals::Extract.3pm|169|\*(C`_\|_unzip\*(C'\fR will be called, otherwise \f(CW\*(C`_\|_untar\*(C'\fR |If it's a zip archive, \f(CW\*(C`_\|_unzip\*(C'\fR will be called, otherwise \f(CW\*(C`_\|_untar\*(C'\fR
) (rof_escape_sequence|91|CPANPLUS::Internals::Extract.3pm|173|\*(C`_extract\*(C'\fR takes the following options: |\&\f(CW\*(C`_extract\*(C'\fR takes the following options:
) (rof_escape_sequence|91|CPANPLUS::Internals::Extract.3pm|176|\*(C`CPANPLUS::Module\*(C'\fR object. This is required. |A \f(CW\*(C`CPANPLUS::Module\*(C'\fR object. This is required.
) (rof_escape_sequence|91|CPANPLUS::Internals::Extract.3pm|185|\*(C`Archive::Tar\*(C'\fR or \f(CW\*(C`Archive::Zip\*(C'\fR respectively, or a binary solution |\&\f(CW\*(C`Archive::Tar\*(C'\fR or \f(CW\*(C`Archive::Zip\*(C'\fR respectively, or a binary solution
) (rof_escape_sequence|91|CPANPLUS::Internals::Extract.3pm|186|\*(C`unzip\*(C'\fR and \f(CW\*(C`tar\*(C'\fR. |like \f(CW\*(C`unzip\*(C'\fR and \f(CW\*(C`tar\*(C'\fR.
) (rof_escape_sequence|91|CPANPLUS::Internals::Extract.3pm|200|\*(C`_\|_unzip\*(C'\fR or \f(CW\*(C`_\|_untar\*(C'\fR. |All other options are passed on verbatim to \f(CW\*(C`_\|_unzip\*(C'\fR or \f(CW\*(C`_\|_untar\*(C'\fR.
)