forked from endevver/file-download
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
40 lines (29 loc) · 1.09 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
File::Download 0.4_050601 -- a module for downloading large files in perl > 5.6.1
Copyright (c) 2015 Matt Pagel, Byrne Reese, Gisle Aas. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
To install this module, please run:
perl Makefile.PL
make
make test
make install
or
manually create a File-Download subdirectory within your cpan/build directory
move or extract all files from this repository into the new directory
navigate to that directory at a command/shell prompt and type
cpan .
For more information on the module, please see the POD documentation
inside Download.pm. ("perldoc File::Download", once it is installed.)
DISCLAIMER
The code for this module is taken almost entirely from the lwp-download
script found in LWP or libwww-perl. It has been abstracted into a
module for better portability and re-use.
USAGE
my $dwn = File::Download->new({
file => $argfile,
overwrite => 1,
mode => ($opt{a} ? 'a' : 'b'),
});
print "Downloading $url\n";
print $dwn->download($url);
print $dwn->status();