App-tpnotify
view release on metacpan or search on metacpan
abend(EX_OSERR, "$@");
}
my $ua = LWP::UserAgent->new();
$ua->agent("tpnotify/$VERSION");
my $response = $ua->get($url->as_string, %args);
unless ($response->is_success) {
abend(EX_UNAVAILABLE,
"downloading $source failed: " . $response->status_line);
}
if (ref($dest) eq 'SCALAR') {
$$dest = $response->decoded_content;
}
return $dest;
}
# get_sources($URL)
# -----------------
# Download and extract source archive.
sub get_sources {
my ($source) = @_;
$archive_file = download($source);
( run in 0.231 second using v1.01-cache-2.11-cpan-26ccb49234f )