2021年2月25日

摘要: 这算是Perl OOP编程的构造函数 package xxx;...sub new { my $class = shift(); my $self = {}; bless $self, $class; return $self;}...1; 更简短的构造函数如下sub new { my $self 阅读全文
posted @ 2021-02-25 11:48 zwu 阅读(637) 评论(0) 推荐(0)

导航