Acme-AutoLoad
view release on metacpan or search on metacpan
lib/Acme/AutoLoad.pm view on Meta::CPAN
Are you tired of everyone whining that your perl script doesn't work for other people
because they didn't install some CPAN module that you "use" in your code, but you don't
want to keep explaining to them how to install that silly dependency?
Well then, this is just what you need.
=head1 INSTALL
Unlike most other modules on CPAN, this one is never intended to be installed.
It works by simply adding only one line, i.e., the "MAGIC LINE" from the SYNOPSYS above.
You can just copy/paste and then "use" whatever CPAN module you want after that.
It even automatically loads the latest version of Acme::AutoLoad at run-time directly from CPAN.
The optional "MAGIC LINE" comment is only to direct people reading your code back here to this documentation.
The line is intentionally short in order to minimize effort to use it.
It also can be easily used from commandline since it contains no quotes.
=head1 DISCLAIMER
This module is not recommended for use in production environments.
This MAGIC LINE will eval code from the network, which is generally a BAD IDEA!
Relying on remote network is generally dangerous for security and functionality.
lib/Acme/AutoLoad.pm view on Meta::CPAN
=head2 AUTOLOAD_DEBUG
You can enable verbose debugging to see more how it works or
if you are having trouble with some modules by setting
AUTOLOAD_DEBUG to a true value.
The default is off.
=head2 AUTOLOAD_SRC
You can use AUTOLOAD_SRC to specify the mapper engine to ask where the latest location of the module is.
# For example
BEGIN { $ENV{AUTOLOAD_SRC} = "http://metacpan.org/release"; }
The default is "http://fastapi.metacpan.org/v1/module"
=head2 NETWORK_TEST_ACME_AUTOLOAD
In order to really test the test suite, the NETWORK_TEST_ACME_AUTOLOAD
environment variable must be set to a true value, otherwise none of the
network dependent tests will be run. For example:
NETWORK_TEST_ACME_AUTOLOAD=1 make test
=head1 SEE ALSO
lib::xi - Similar on-demand functionality except nothing required to install.
local::lib - Similar local folder installation functionality except nothing to install.
App::cpanminus - Similar remote network "cpanmin.us" execution functionality except smaller.
CPAN - Actually installs CPAN modules instead of using a local cache.
cpan2rpm - Similar code to lookup latest module without having to configure any CPAN.pm bloat.
=head1 AUTHOR
Rob Brown (bbb@cpan.org) - Acme::AutoLoad code and RCX maintainer.
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2011-2020 by Rob Brown
This library is free software; you can redistribute it and/or modify
( run in 1.783 second using v1.01-cache-2.11-cpan-f56aa216473 )