Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\CPANPLUS\Internals\Extract.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/Extract.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/Extract.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> <ul> <li><a href="#_dir____extract__module_____modobj___perl______path_to_perl___extractdir______path_to_extract_to___prefer_bin____bool__verbose____bool__force____bool___">$dir = _extract( module => $modobj, [perl => '/path/to/perl', extractdir => '/path/to/extract/to', prefer_bin => BOOL, verbose => BOOL, force => BOOL] )</a></li> </ul> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <hr /> <h1><a name="name">NAME</a></h1> <p>CPANPLUS::Internals::Extract</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> ### for source files ### $self->_gunzip( file => 'foo.gz', output => 'blah.txt' ); ### for modules/packages ### $dir = $self->_extract( module => $modobj, extractdir => '/some/where' );</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>CPANPLUS::Internals::Extract extracts compressed files for CPANPLUS. It can do this by either a pure perl solution (preferred) with the use of <code>Archive::Tar</code> and <code>Compress::Zlib</code>, or with binaries, like <code>gzip</code> and <code>tar</code>.</p> <pre> The flow looks like this:</pre> <pre> $cb->_extract Delegate to Archive::Extract =head1 METHODS</pre> <p> </p> <h2><a name="_dir____extract__module_____modobj___perl______path_to_perl___extractdir______path_to_extract_to___prefer_bin____bool__verbose____bool__force____bool___">$dir = _extract( module => $modobj, [perl => '/path/to/perl', extractdir => '/path/to/extract/to', prefer_bin => BOOL, verbose => BOOL, force => BOOL] )</a></h2> <p><code>_extract</code> will take a module object and extract it to <a href="#extractdir"><code>extractdir</code></a> if provided, or the default location which is obtained from your config.</p> <p>The file name is obtained by looking at <code>$modobj->status->fetch</code> and will be parsed to see if it's a tar or zip archive.</p> <p>If it's a zip archive, <code>__unzip</code> will be called, otherwise <code>__untar</code> will be called. In the unlikely event the file is of neither format, an error will be thrown.</p> <p><code>_extract</code> takes the following options:</p> <dl> <dt><strong><a name="module" class="item">module</a></strong> <dd> <p>A <code>CPANPLUS::Module</code> object. This is required.</p> </dd> </li> <dt><strong><a name="extractdir" class="item">extractdir</a></strong> <dd> <p>The directory to extract the archive to. By default this looks something like: /CPANPLUS_BASE/PERL_VERSION/BUILD/MODULE_NAME</p> </dd> </li> <dt><strong><a name="prefer_bin" class="item">prefer_bin</a></strong> <dd> <p>A flag indicating whether you prefer a pure perl solution, ie <code>Archive::Tar</code> or <code>Archive::Zip</code> respectively, or a binary solution like <code>unzip</code> and <code>tar</code>.</p> </dd> </li> <dt><strong><a name="perl" class="item">perl</a></strong> <dd> <p>The path to the perl executable to use for any perl calls. Also used to determine the build version directory for extraction.</p> </dd> </li> <dt><strong><a name="verbose" class="item">verbose</a></strong> <dd> <p>Specifies whether to be verbose or not. Defaults to your corresponding config entry.</p> </dd> </li> <dt><strong><a name="force" class="item">force</a></strong> <dd> <p>Specifies whether to force the extraction or not. Defaults to your corresponding config entry.</p> </dd> </li> </dl> <p>All other options are passed on verbatim to <code>__unzip</code> or <code>__untar</code>.</p> <p>Returns the directory the file was extracted to on success and false on failure.</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/Internals/Extract.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