use strict; package LoudDecl; use Attribute::Handlers; use attributes; sub Loud :ATTR { print "NOISE!\n"; } sub foo: Loud method { print 1; } print "Attributes: "; print attributes::get(\&foo); print "\n";