Commits

Anonymous committed 802cc45

Use object method, not interim dirty approach.

Comments (0)

Files changed (1)

Statistics-Descriptive/lib/Statistics/Descriptive.pm

 
     ##Variance isn't commonly enough
     ##used to recompute every single data add, so just clear its cache.
-    #$self->_variance(undef);
-    $self->{variance} = undef;  #  Dirty approach, as above
+    $self->_variance(undef);
     
     push @{ $self->_data() }, @{ $aref };