NAME
CloudPAN - Never install pure Perl modules again
VERSION
version 1.130120
SYNOPSIS
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' };
DESCRIPTION
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).
CLASS_METHODS
import
(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.
CAVEATS
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.
AUTHOR
Nicholas R. Perez <nperez@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 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.