I\'m reading a spreadsheet looking for different structures. When I tried the following using Moose it seems to do what I want. I could create different types of objects, as
has $.found is rw where Sch_Symbol|Chip_Symbol|Net;
or define new type by subset
subset Stuff where Sch_Symbol|Chip_Symbol|Net;
class Cell {
has Str $.str_val is required;
has Str $.x_id is required;
has Str $.color;
has Str $.border;
has Stuff $.found is rw;
}