perl处理properties文件[转]
来源:互联网 发布:我的世界符文矩阵 编辑:程序博客网 时间:2024/06/05 16:27
perl处理properties文件
- 博客分类:
- perl
使用Config::Properties模块,详情请见:http://search.cpan.org/~salva/Config-Properties-1.70/Properties.pm
Perl代码
- use
Cwd; - BEGIN
{ -
$ipath = getcwd . "/lib/perl/pm/"; -
push @INC, $ipath; - }
- use
Config::Properties; -
- my
$properties = new Config::Properties(); -
- open
PROPS, "< $propfile" -
or die "unable to ;open properties file" -
- $properties->load(*PROPS);
- $value
= $properties->getProperty( $key ); -
- #
saving... - open
PROPS, "> $propfile" -
or die "unable to ;open properties file for writing" -
- $properties->setProperty(
$key, $val ); -
- $properties->format(
'%s=%s' ); - $properties->store(*PROPS,
$header ); -
- close
PROPS;
0 0
- perl处理properties文件[转]
- Perl 处理excel文件
- Perl处理Excel文件
- perl 文件处理
- Perl处理Excel文件
- perl批量处理文件
- CSV 文件处理 PERL
- Properties文件的处理
- java处理properties文件
- Properties文件处理方式
- perl如何处理INI文件
- perl处理大容量文件
- perl并行处理大文件
- perl文件编码处理问题
- perl 6 批量处理文件
- 使用 SDLX 处理 *.properties 文件
- perl中调用ole 处理excel文件
- 读取excel文件(使用perl处理)
- A Beginner's Python Tutorial
- PERL中删除文件夹及内容的函数
- e = e || window.event用法细节讨论
- Installing other Perl modules wi…
- Finding A Perl Module's Path[转]
- perl处理properties文件[转]
- Perl script 导出 DataStage jobs
- 快速掌握查看数据库表死锁的实用方…
- CygWin 常用命令[转]
- What is a Perforce "shelved" fil…
- flex&java通信错误之一:Server.re…
- 转载——常见的RemoteObject错误
- Android编译错误处理[转]
- DB2 Basics: Fun with Dates and T…