Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    
    my $N = Value->new(23);
    ...
        $self->{value}*= $num;
        return $self;    
    }
    
  2. or download this
    $VAR1 = bless( {
                     'value' => 46
                   }, 'Value' );
    ...
                   }, 'Value' );
    Operation "=": no method found, argument in overloaded package Value
    at /bla/bla/bla/test/Value.pl line 12.
    
  3. or download this
    $test->{obj} = $N;
    use overload ('*=' => 'mulSet');
    
  4. or download this
    return $self;