- or download this
sub new {
my $class = shift;
...
return bless { datum => $value, glob => *value }, $class
}
- or download this
sub value {
my $self = shift;
...
return $self->{glob} # might work
}
- or download this
my $d = datum->new(42);
*d = $d->value();
- or download this
my $datum = \ $obj->{datum};
# and then
$$datum = ...;
- or download this
$datum->{foo}=...;
push @$datum,...;