[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

about perl question!



請問my $a=new('red',1,2)#這句是什麼意思呢?
還有:
clock.pm
package clock;
sub new{my($type)=@_;
my $self={};
為什麼要定義個這個而且是空的呢?
$self->{time}=time();
bless $self,$type; 
 #請問bless是什麼意思呢?
}
sub get{my($self)=@_;
return($self->{time});
}
clock.pl
use clock;
my $clock1=new clock();這句是什麼意思呢?
print"$clock1->get();這句呢?

_________________________________________________________
Do You Yahoo!? 登錄免費雅虎電郵! http://mail.yahoo.com.cn
創建雅虎俱樂部,真我個性盡施展!http://cn.clubs.yahoo.com

-- 
| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.



Reply to: