摘要:
[root@dr-mysql01 ~]# cat a2.pl my $url="http://192.168.32.101:3000/api/getcode?env=zj&phone=18072722237";use LWP::UserAgent;use Encode; my $ua = LW... 阅读全文
posted @ 2016-05-20 10:25
czcb
阅读(354)
评论(0)
推荐(0)
摘要:
[root@dr-mysql01 ~]# cat a2.pl my $url="http://192.168.32.101:3000/api/getcode?env=zj&phone=18072722237";use LWP::UserAgent;use Encode; my $ua = LW... 阅读全文
posted @ 2016-05-20 10:25
czcb
阅读(137)
评论(0)
推荐(0)
摘要:
[root@dr-mysql01 ~]# cat a1.plmy $url="http://192.168.32.101:3000/api/getcode?env=zj&phone=180727xx237";use LWP::UserAgent;use Encode; my $ua = LWP... 阅读全文
posted @ 2016-05-20 10:11
czcb
阅读(140)
评论(0)
推荐(0)
摘要:
[root@dr-mysql01 ~]# cat a1.plmy $url="http://192.168.32.101:3000/api/getcode?env=zj&phone=180727xx237";use LWP::UserAgent;use Encode; my $ua = LWP... 阅读全文
posted @ 2016-05-20 10:11
czcb
阅读(245)
评论(0)
推荐(0)
摘要:
我不明白 use EXPORT和use EXPORT_OK的区别,大多数资料提到了一些:@Export 允许 导出模块的函数和变量到用户的名字空间使用标准的导入方法。这种方式,我们不需要创建模块的对象来访问它的成员。@EXPORT_OK 导出选择的模块的符号列表(子函数和变量)但是确实没有看到... 阅读全文
posted @ 2016-05-19 22:05
czcb
阅读(144)
评论(0)
推荐(0)
摘要:
我不明白 use EXPORT和use EXPORT_OK的区别,大多数资料提到了一些:@Export 允许 导出模块的函数和变量到用户的名字空间使用标准的导入方法。这种方式,我们不需要创建模块的对象来访问它的成员。@EXPORT_OK 导出选择的模块的符号列表(子函数和变量)但是确实没有看到... 阅读全文
posted @ 2016-05-19 22:05
czcb
阅读(115)
评论(0)
推荐(0)
摘要:
匿名函数引用:[root@wx03 wx]# perl a1.pl CODE(0x2077b30)test[root@wx03 wx]# cat a1.pl $ref= sub {return test."\n"};print $ref;print "\n";print &$ref;[root@... 阅读全文
posted @ 2016-05-19 17:21
czcb
阅读(141)
评论(0)
推荐(0)
摘要:
匿名函数引用:[root@wx03 wx]# perl a1.pl CODE(0x2077b30)test[root@wx03 wx]# cat a1.pl $ref= sub {return test."\n"};print $ref;print "\n";print &$ref;[root@... 阅读全文
posted @ 2016-05-19 17:21
czcb
阅读(157)
评论(0)
推荐(0)
摘要:
Perl does not provide any special syntax for class definitionsPerl 不提供任何特殊的语法对于类的定义A package is simply a namespace containing variables and subrouti... 阅读全文
posted @ 2016-05-19 10:54
czcb
阅读(175)
评论(0)
推荐(0)
摘要:
Perl does not provide any special syntax for class definitionsPerl 不提供任何特殊的语法对于类的定义A package is simply a namespace containing variables and subrouti... 阅读全文
posted @ 2016-05-19 10:54
czcb
阅读(255)
评论(0)
推荐(0)
浙公网安备 33010602011771号