in reply to Struct class

You don't tell us what the error is. However, running the code give the error:

Can't locate object method "Person" via package "name" (perhaps you fo +rgot to load "name"?) at ...

so something like that is most likely what you are seeing. The issue is your use of the struct function. You need to write it like:

struct Person => { name => '$', age => '$', peers => '@', };
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond