in reply to Re^2: Class::Struct accessor function after Perl V5.16
in thread Class::Struct accessor function after Perl V5.16

Sorry, I forgot to mention that set_heights, apart from initialization stage, is called passing a list of key/value pairs.
So
if (@_ && ref $_[0] ne 'ARRAY') {
is now fixing the code. Thanks a lot for your time and help.