摘要: #ping测试 #疑问,这种结构else如何表达 use Net::Ping; $host='192.168.195.1'; $p = Net::Ping->new(); print "$host is alive.\n" if $p->ping($host); $p->close(); 阅读全文
posted @ 2007-04-09 20:21 slaughter 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 转载:http://lynsead.spaces.live.com/Blog/cns!1pN1cYMeTzpoDjzM1P1IqDFg!135.entry perl对中文的处理(encode,decode) 最近在处理中文时遇到乱码的问题,google了一下,发现下面这篇文章。茅塞顿开! Perl从5.6开始已经开始在内部使用utf8编码来表示字符,也就是说对中文以及其他语言字符的处理应该是... 阅读全文
posted @ 2007-03-15 13:13 slaughter 阅读(14238) 评论(1) 推荐(0) 编辑