in reply to annotation, derivation

I wonder if you could do some magic with attributes? See also this previous discussion on Perlmonks about attributes.