-
对cpan上的某个模块的constructor有疑问,请教本帖最后由gaochong于2010-11-1021:08编辑perl学习中。模块: http://cpansearch.perl.org/src/BLOONIX/Sys-Statistics-Linux-0.59/lib/Sys/Statistics/Linux/DiskUsage.pmnew代码如下:subnew{gaochong 时间:11-10 + 阅读全文
-
how to deal with this compilation error ?cattest5useDBI;usestrict;$dbh=DBI->connect("DBI:mysql:database=somedb:host=localhost","user", "pass",{'limary5 时间:11-10 + 阅读全文
-
问一个perl模式匹配的问题我的字符串如下格式FPxxxxddxxxx为数字,不一定是4位数,位数是不确定的dd为非数字,通常为空格,也可能是别的字符,但不是数字我以前是如下匹配的$feature_name=~/^FP(.+?)/但是是根据空格,目前有可能不是空格,请问应该如何写匹配?谢谢!hepower 时间:11-10 + 阅读全文
-
关于一个保存文件的问题?本帖最后由xingzhou823于2010-11-1015:33编辑usestrict;usewarnings;openmy$fh,"<","rice_test01.txt"ordie"Error.\n";wxingzhou823 时间:11-10 + 阅读全文
-
Perl编程思想 (Thinking in Perl)质量很不错的PDF,给大家分享。==============Thinking.in.Perl(Perl编程思想).pdf(1.96MB)下载次数:142010-11-1014:50cbccool 时间:11-10 + 阅读全文
-
perl 如何判断中文是否乱码?当前local是UTF8,perl读取的文件也是utf8。请问有什么方法判断读取的文件内容中文是否乱码?内容大概为格式:不乱码:QUOTE:createtablexxxxxxxxxxxx................createtable中华人民共和国乱码:createtab醒目 时间:11-10 + 阅读全文