7 - Attribute::Handlers Allows annotation of code (subs, scalars, etc). use Attribute::Attempts; # Alter db will try three times before failing sub alter_db : attempts(tries => 3, delay => 2) { ... } use Attribute::Types; my $date : INTEGER(1..31); # Can only store an int between 1..31 my $x : Type(/good|bad|ugly/); # Can only store regex matches my @rain : NUMBER; # Elements can only store numbers