Perl 类的构造函数
sub new{ my $object = shift(); my $class = ref($object)||$object; my $date = {}; #...... bless($date,$class); return $date;}
sub new{ my $class = shift(); #... my $self = {}; #... bless($self,$class); return $self;}