Help for this page

Select Code to Download


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