2017年2月26日

url编码模块

摘要: 1 use LWP::SImple; 2 use URI::Escape; 3 encoded_string = uri_escape(raw_string); 4 get(encoded_string); 阅读全文

posted @ 2017-02-26 22:03 Perl6 阅读(169) 评论(0) 推荐(0) 编辑

Mojo_1_第一个简单例子

摘要: 可以这样运行: morbo script.pl 阅读全文

posted @ 2017-02-26 09:08 Perl6 阅读(294) 评论(0) 推荐(0) 编辑

2017年2月24日

php中的__call()函数重载

摘要: 结果: 阅读全文

posted @ 2017-02-24 11:09 Perl6 阅读(378) 评论(0) 推荐(0) 编辑

php中使用static方法

摘要: 1 <?php 2 3 class Char{ 4 public static $number = 0; 5 public static $name; 6 7 function __construct($what){ 8 self::$name = $what; 9 } 10 public stat 阅读全文

posted @ 2017-02-24 08:42 Perl6 阅读(1003) 评论(0) 推荐(0) 编辑

php中类的static变量使用

摘要: 1 name = $what; 11 } 12 function Join(){ 13 self::$number++; 14 echo self::$number," Is :",$this->name,""; 15 } 16 17 } 18 19 $test = range('a','z'); 20 foreach($te... 阅读全文

posted @ 2017-02-24 08:19 Perl6 阅读(898) 评论(0) 推荐(0) 编辑

2017年2月22日

第一章: 文件句柄转化为 typeglob/glob 与文件句柄检测

摘要: 1 #为了使在子例程中传递文件句柄不出问题 2 #我们要把文件句柄转为glob或typeglob 3 4 5 #转为glob 6 $fd = *MY_FILE; 7 8 #转为typeblog 9 $fd = \*MY_FILE; 10 11 #两种形式都行, 但\*MY_FILE更安全, 一般都用这个形式 12 13 14 15 #传递给子程序 16 hello... 阅读全文

posted @ 2017-02-22 08:19 Perl6 阅读(240) 评论(0) 推荐(0) 编辑

perl登录ssh

摘要: 挺好用的, 用法没有太复杂 阅读全文

posted @ 2017-02-22 05:29 Perl6 阅读(1205) 评论(0) 推荐(0) 编辑

2017年2月21日

第一章:设置无缓冲

摘要: 1 #用select, 要先select一个句柄, 用完后记得select回原来的 2 open FILE, ">log.txt"; 3 select FILE; 4 $| = 1; 5 #$|为true时设置FILE为无缓冲 6 print FILE "The log file data"; 7 #print "The log file data"; 8 select STDO... 阅读全文

posted @ 2017-02-21 15:08 Perl6 阅读(248) 评论(0) 推荐(0) 编辑

perl输出重定向

摘要: 先把A重定向到STDOUT, 之后的STDOUT不代表标准输出了 到最后用完了再恢复 阅读全文

posted @ 2017-02-21 14:47 Perl6 阅读(1969) 评论(0) 推荐(0) 编辑

2017年2月20日

一个基于时间注入的perl小脚本

摘要: 关键是time获得时间 阅读全文

posted @ 2017-02-20 15:00 Perl6 阅读(836) 评论(7) 推荐(1) 编辑

导航