2017年2月26日

多线程中的变量共享

摘要: 1 use threads; 2 use threads::shared; 3 my $count:shared = 1; 4 print "主线程中count为:$count\n"; 5 6 sub thread1{ 7 print "线程1增加1\n"; 8 $count++; 9 print "在线程1中结果为:$coun... 阅读全文

posted @ 2017-02-26 23:34 Perl6 阅读(1124) 评论(0) 推荐(0) 编辑

perl发送post数据

摘要: 把post数据写进一个匿名数组里就行 或 或 如果用最后一个方法, 记得要带有content_type头才行 阅读全文

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

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) 编辑

导航