in reply to Re: Wrong Error Message When Testing for Failure of Constructor
in thread Wrong Error Message When Testing for Failure of Constructor

davidrw wrote:

The root cause becomes apparent with these debugging statements in the constructor:

warn "default_values: " . \%default_values; my $self = ref($class) ? bless( \%default_values, ref($class) ) : bless( \%default_values, $class ); warn "self: " . $self;

Thanks for reminding me about a trick I knew several years ago but had forgotten!