- or download this
sub new {
my $proto = shift;
my $class = ref ($proto) || $proto;
my %this;
return tie(%this, $class);
}
- or download this
package FunClass;
sub new {
my $class = shift;
...
tie %{$this}, $class;
return $this;
}
- or download this
Destroying FunClass=HASH(0x80f173c)!
Calling DESTROY by SillyClass=HASH(0x80f600c)