in reply to Create a class with mutiple datatypes
Welcome to the perl community!
Try looking in perltoot, then write your own package (class) and come back when you have some code done.