in reply to Re^4: Link methods to hash values
in thread Link methods to hash values

much easier and cleaner would be to use Class::Accessor, as [id://Hue-Bond] suggested.