無名のスカラは、1 つのインスタンス変数が必要とされるときにだけ、使うこと ができます。
package Foo;
sub new {
my $type = shift;
my $self;
$self = shift;
bless \$self;
}
package main;
$a = new Foo 42;
print "a=$$a\n";
Go to the first, previous, next, last section, table of contents.