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!
In reply to Re^2: Wrong Error Message When Testing for Failure of Constructor
by jkeenan1
in thread Wrong Error Message When Testing for Failure of Constructor
by jkeenan1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |