develooper Front page | perl.perl5.porters | Postings from April 2013

RE: [PATCH] On eliminating external tools from the release process

Thread Previous | Thread Next
From:
vadim.konovalov
Date:
April 4, 2013 09:26
Subject:
RE: [PATCH] On eliminating external tools from the release process
Message ID:
DC0095F744C45F45BDD43368AB46582C01033A@FR712WXCHMBA09.zeu.alcatel-lucent.com
> From: Max Maischein
> The attached version of my changes adds five lines for every 
> simple call 
> to `wget`, trying with HTTP::Tiny first and falling back to 
> the original 
> `wget` second:
> 
> +    eval {
> +        require HTTP::Tiny;
> +        my $http= HTTP::Tiny->new();
> +        $http->mirror( $url => $new_file );

the simpler the better

        HTTP::Tiny->new()->mirror( $url => $new_file );

> +        1
> +    } or system wget => $url, '-qO', $new_file;

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About