2007-11-11から1日間の記事一覧
イニシャライズ中に他のメソッドを呼ぼうとしたら Can't call method "hoge" on unblessed reference at .... ってエラーが出た。しばらく悩む。 package Human; sub new { my $class = shift; my $name = shift; my $age = shift; my $self = {}; $self->{n…
イニシャライズ中に他のメソッドを呼ぼうとしたら Can't call method "hoge" on unblessed reference at .... ってエラーが出た。しばらく悩む。 package Human; sub new { my $class = shift; my $name = shift; my $age = shift; my $self = {}; $self->{n…