Created
August 22, 2018 03:53
-
-
Save theand/13ffe6808f3d13852795e5a7d2dbe77c to your computer and use it in GitHub Desktop.
download http url
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use File::Fetch; | |
my $url = $ARGV[0]; | |
print "downloading $url\n"; | |
my $ff = File::Fetch->new(uri => $url); | |
my $file = $ff->fetch() or die $ff->error; | |
print "done\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment