Subject: | Possible improvement to details method |
I think $self->{details} is unneccessary as $Details can be returned
from the details method whether called as a class or object method. For
example, details could be simplified to:
sub details {
my $self = shift;
return $Details unless @_;
$Details = shift;
return undef;
}
And line 46 removed altogether:
$self->{details} = $Details = undef;
Or am I missing something??? ;o)