- or download this
my $ret = $obj->do_something($with, $these, $args);
- or download this
package Widget;
...
tie my %h, __PACKAGE__, $self;
\%h;
};
- or download this
my $widg = Widget->new;
print "$widg->{name} is the same as " . $widg->name;
- or download this
sub TIEHASH {
my ($pkg, $object) = @_;
...
my ($self, $key) = @_;
$self->$key;
}