http://www.perlmonks.org?node_id=1205763


in reply to how to name an anonymous reference

sub ULONG () { 9 } sub ENUM () { 23 } my $AutoidKind = [ ENUM, "AutoidKind", [ "SEQUENTIAL", "HASH" ] ]; my @annotations = ( [ "id", [ ULONG, "value", undef ] ], [ "autoid", $AutoidKind, [ $AutoidKind, "value", "HASH" ] ], );

Replies are listed 'Best First'.
SOLVED [Re^2: how to name an anonymous reference]
by omkellogg (Novice) on Dec 18, 2017 at 07:16 UTC
    Yes, this is very close to what I was looking for. In this particular language, enum type declarations are local to their enclosing annotation declarations; therefore I will go with http://www.perlmonks.org/?node_id=1205756