MyHashRefOfStr
StrOrArrayRef
AtLeastOneInt
+ Jobs
)];
-## Some questionable messing around
- sub my_subtype {
- my ($subtype, $basetype, @rest) = @_;
- return subtype($subtype, $basetype, shift @rest, shift @rest);
- }
-
- sub my_from {
- return @_;
-
- }
- sub my_as {
- return @_;
- }
-## End
-
subtype MyArrayRefBase,
as ArrayRef;
subtype AtLeastOneInt,
as ArrayRef[Int],
where { @$_ > 0 };
-
+
+enum Jobs,
+ (qw/Programming Teaching Banking/);
+
1;