Module::Packaged::Generator::Role::UrlFetching - role to provide easy url fetching
version 1.111930
This Moose role provides the consuming class with an easy way to mirror files from the internet.
my $file = $self->fetch_url( $url, $basename );
Try to fetch $url, and store it as $basename in a private data directory (cf Module::Packaged::Generator::Utils). Return the full path if successful (a Path::Class object), throws an error if download ended up as an error.
$url
$basename
Jerome Quelin
This software is copyright (c) 2010 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Module::Packaged::Generator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Packaged::Generator
CPAN shell
perl -MCPAN -e shell install Module::Packaged::Generator
For more information on module installation, please visit the detailed CPAN module installation guide.