App-cpanminus
view release on metacpan or search on metacpan
214215216217218219220221222223224225226227228229230231232233234$fatpacked
{
"Exporter/Heavy.pm"
} =
'#line '
.(1+__LINE__).
' "'
.__FILE__."\
"\n"
.
<<'EXPORTER_HEAVY';
package Exporter::Heavy;use strict;no strict 'refs';require Exporter;our$VERSION=$Exporter::VERSION;sub _rebuild_cache {my ($pkg,$exports,$cache)=@_;s/^&// foreach @$exports;@{$cache}{@$exports}=(1)x @$exports;my$ok=\@{"${pkg}::EXPORT_OK"};if (@$ok...
EXPORTER_HEAVY
$fatpacked
{
"File/pushd.pm"
} =
'#line '
.(1+__LINE__).
' "'
.__FILE__."\
"\n"
.
<<'FILE_PUSHD';
use strict;use warnings;package File::pushd;our$VERSION='1.009';our@EXPORT=qw(pushd tempd);our@ISA=qw(Exporter);use Exporter;use Carp;use Cwd qw(getcwd abs_path);use File::Path qw(rmtree);use File::Temp qw();use File::Spec;use overload q{""}=>sub {...
FILE_PUSHD
$fatpacked
{
"HTTP/Tiny.pm"
} =
'#line '
.(1+__LINE__).
' "'
.__FILE__."\
"\n"
.
<<'HTTP_TINY';
package HTTP::Tiny;use strict;use warnings;our$VERSION='0.056';use Carp ();my@attributes;BEGIN {@attributes=qw(cookie_jar default_headers http_proxy https_proxy keep_alive local_address max_redirect max_size proxy no_proxy timeout SSL_options verif...
sub $sub_name {
my (\$self, \$url, \$args) = \@_;
\@_ == 2 || (\@_ == 3 && ref \$args eq 'HASH')
or Carp::croak(q/Usage: \$http->$sub_name(URL, [HASHREF])/ . "\n");
return \$self->request('$req_method', \$url, \$args || {});
}
HERE
HTTP_TINY
$fatpacked
{
"JSON/PP.pm"
} =
'#line '
.(1+__LINE__).
' "'
.__FILE__."\
"\n"
.<<
'JSON_PP'
;
lib/App/cpanminus/fatscript.pm view on Meta::CPAN
137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739#pod If the file was modified and the server response includes a properly
#pod formatted C<Last-Modified> header, the file modification time will
#pod be updated accordingly.
#pod
#pod =cut
sub
mirror {
my
(
$self
,
$url
,
$file
,
$args
) =
@_
;
@_
== 3 || (
@_
== 4 &&
ref
$args
eq
'HASH'
)
or Carp::croak(
q/Usage: $http->mirror(URL, FILE, [HASHREF])/
.
"\n"
);
if
( -e
$file
and
my
$mtime
= (
stat
(
$file
))[9] ) {
$args
->{headers}{
'if-modified-since'
} ||=
$self
->_http_date(
$mtime
);
}
my
$tempfile
=
$file
.
int
(
rand
(2**31));
sysopen
my
$fh
,
$tempfile
, Fcntl::O_CREAT()|Fcntl::O_EXCL()|Fcntl::O_WRONLY()
or Carp::croak(
qq/Error: Could not create temporary file $tempfile for downloading: $!\n/
);
binmode
$fh
;
$args
->{data_callback} =
sub
{
{
$fh
}
$_
[0] };
my
$response
=
$self
->request(
'GET'
,
$url
,
$args
);
( run in 0.307 second using v1.01-cache-2.11-cpan-5f2e87ce722 )