perl -MCPAN -e 'install Module::Build'
``` {.brush:xml .;toolbar: .true; .auto-links: .false;}
perl -MCPAN -e 'install Config::IniFiles'
config模块使用方法:
use Config::IniFiles;
my $cfg = Config::IniFiles->new( -file => "config.ini") ;
if ($cfg){
my $username = $cfg->val( 'auth', 'username' ) ;
# print "用户名:". $username ;
# say "";
}else{
say "请确认配置文件是否存在,退出任务!";
exit;
}
| | |
| :--------: | :--------|
| 文章作者 | 明哥 |
| 文章地址 | [https://www.pvcreate.com/index.php/archives/91/](https://www.pvcreate.com/index.php/archives/91/) |
| 创建时间 | 2014-10-27 |
| 关注订阅 | [微信订阅号](https://static.pvcreate.com/png/扫码_搜索联合传播样式-标准色版.png) |
| 开源项目 | [https://gitee.com/lookingdreamer](https://gitee.com/lookingdreamer) |
| 工具市场 | [https://gitee.com/lookingdreamer/SPPPOTools](https://gitee.com/lookingdreamer/SPPPOTools)|