class Foo {
sub new() {
self.bless({})
}
sub bar() {
say("Hello!");
}
}
このようにして Foo.tra を定義したら
use Foo *;
my $foo = Foo.new();
$foo.bar();
のようにして利用します。
More than 5 years have passed since last update.
class Foo {
sub new() {
self.bless({})
}
sub bar() {
say("Hello!");
}
}
このようにして Foo.tra を定義したら
use Foo *;
my $foo = Foo.new();
$foo.bar();
のようにして利用します。
Register as a new user and use Qiita more conveniently