Entries from 2008-12-06 to 1 day
4人のperl mongerのなかでアホなことを聞いて教えてもらった。パッケージ名はただの文字列なので全体をスカラー変数に入れてnewすればふつうにnewできる。 package Animal::Cow; sub new { my $class = shift; $class = ref $class if ref $class; my $self …
4人のperl mongerのなかでアホなことを聞いて教えてもらった。パッケージ名はただの文字列なので全体をスカラー変数に入れてnewすればふつうにnewできる。 package Animal::Cow; sub new { my $class = shift; $class = ref $class if ref $class; my $self …