Attributes

attributes(3p) Perl Programmers Reference Guide attributes(3p)

Attributes

attributes(3p) Perl Programmers Reference Guide attributes(3p) # attributes(3p) Perl Programmers Reference Guide attributes(3p) NNAAMMEE # attributes - get/set subroutine or variable attributes SSYYNNOOPPSSIISS # sub foo : method ; my ($x,@y,%z) : Bent = 1; my $s = sub : method { ... }; use attributes (); # optional, to get subroutine declarations my @attrlist = attributes::get(\&foo); use attributes 'get'; # import the attributes::get subroutine my @attrlist = get \&foo; DDEESSCCRRIIPPTTIIOONN # Subroutine declarations and definitions may optionally have attribute lists associated with them. ...