如何将自定义模块添加到perl纸箱?

我试图用纸箱作为部署容器.但是我遇到了一个小问题.我不知道,如何安装私人模块.

创建了一个快速测试模块:

h2xs -AX Foo::Bar

tree Foo-Bar/
Foo-Bar/
├── Changes
├── lib
│ └── Foo
│     └── Bar.pm
├── Makefile.PL
├── MANIFEST
├── README
└── t
    └── Foo-Bar.t

包装它:tar cvfz Foo-Bar-0.01.tar.gz Foo-Bar /
将包复制到vendor / cache目录.

ls vendor/cache/
Foo-Bar-0.01.tar.gz  Try-Tiny-0.18.tar.gz

cat cpanfile
requires 'Foo::Bar','0.01';
requires 'Try::Tiny','0.18';

carton install --cached
Installing modules using /home/donpedro/Garbage/Carton/cpanfile
! Couldn't find module or a distribution Foo::Bar (0.01)
Successfully installed Try-Tiny-0.18
! Installing the dependencies Failed: Module 'Foo::Bar' is not installed
! Bailing out the installation for /home/donpedro/Garbage/Carton/.
1 distribution installed
Installing modules Failed

尝试了一个Milla认模块(教程示例,milla新dist-Name),但没有结果.文档提到对于DarkPan模块,只需将模块放入供应商/缓存目录中,我正在尝试这样做.
官方CPAN模块可以直接放入供应商/缓存目录中.

接下来要尝试什么或如何解决我的问题?

相关文章

1. 如何去重 #!/usr/bin/perl use strict; my %hash; while(...
最近写了一个perl脚本,实现的功能是将表格中其中两列的数据...
表的数据字典格式如下:如果手动写MySQL建表语句,确认麻烦,...
巡检类工作经常会出具日报,最近在原有日报的基础上又新增了...
在实际生产环境中,常常需要从后台日志中截取报文,报文的形...
最近写的一个perl程序,通过关键词匹配统计其出现的频率,让...