CloudPAN - Never install pure Perl modules again
version 1.131740
use CloudPAN; { package Foo; use Moo; has bar => (is => 'rw'); sub baz { $_[0]->bar } } print Foo->new(bar => 3)->baz . "\n"; # 3 ... # Or if you want to persist what you've downloaded: use CloudPAN { persistence_location => '/home/nicholas/cloudpan' };
Ever wanted to load modules from the "cloud"? Love the concept of MetaCPAN and want to exercise it? Then this module is for you. Simply use this module before using any other module that doesn't require compilation (ie. XS modules) and you're set. Note that this doesn't work on all modules (especially ones that mess around with @INC too).
(HashRef)
import takes a HashRef of options.
CloudPAN can either use temp files created with File::Temp, or it can persist what you have previously downloaded from MetaCPAN. To enable persistence, pass it the option 'persistence_location' with an absolute path to the directory you'd like CloudPAN to store things.
There is no real authentication that happens when accessing MetaCPAN. Someone could easily Man-In-The-Middle your connection and feed you bogus code to run. Seriously, don't use this in production code.
Nicholas R. Perez <nperez@cpan.org>
This software is copyright (c) 2013 by Nicholas R. Perez <nperez@cpan.org>.
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 CloudPAN, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CloudPAN
CPAN shell
perl -MCPAN -e shell install CloudPAN
For more information on module installation, please visit the detailed CPAN module installation guide.