导航

2011年3月26日

摘要: copy fromhttp://www.lwolf.cn/blog/article/program/perl-ini.html之前有写过用C#解析INI文件的文章,那时是因为要用Perl来解析INI,后来就在网上找了个现成的解析代码IniParser.假设INI文件是这样的:[Directories]Input=c:\autoexec.bat 使用方法如下:use IniParser;my $ini = IniParser->new("c:\\test.ini");my $inputdir = $ini->expectEntry("Directorie 阅读全文

posted @ 2011-03-26 20:05 Morya 阅读(754) 评论(0) 推荐(0)

摘要: fcntl FILEHANDLE,FUNCTION,SCALARImplements the fcntl(2) function. You'll probably have to say use Fcntl;first to get the correct constant definitions. Argument processing and value returned work just likeioctlbelow. For example:use Fcntl;fcntl($filehandle, F_GETFL, $packed_return_buffer) or die 阅读全文

posted @ 2011-03-26 19:50 Morya 阅读(681) 评论(1) 推荐(0)