Maybe this can be a hash in the future (that has the units and the aliases as keys and the types as values) so that you can just do:

```perl
if(defined %hash{$match}) {
    ...
}
```