e lib::archive qw(
https://www.cpan.org/modules/by-module/JSON/JSON-PP-2.97001.tar.gz
CPAN://YAML-PP-0.007.tar.gz
);
use JSON::PP;
use YAML::PP;
or
use lib::archive '__DATA__';
_
subdirectory 'lib' applies from there. This means that e.g. for
'JSON-PP-2.97001.tar.gz' the modules will only be included from
'JSON-PP-2.97001/lib'.
You can use URLs for loading modules directly f
use lib::archive 'https://www.cpan.org/modules/by-module/JSON/JSON-PP-2.97001.tar.gz';
or use a shortcut like:
use lib::archive 'CPAN://JSON-PP-2.97001.tar.gz';
which will do exactly the same thi