Copyright (C) 2000-2012 |
Manpages attrsSection: Perl Programmers Reference Guide (3perl)Updated: 2001-03-03 Index Return to Main Contents NAMEattrs - set/get attributes of a subroutine (deprecated)SYNOPSISsub foo { use attrs qw(locked method); ... } @a = attrs::get(\&foo); DESCRIPTIONNOTE: Use of this pragma is deprecated. Use the syntax
sub foo : locked method { }to declare attributes instead. See also attributes. This pragma lets you set and get attributes for subroutines. Setting attributes takes place at compile time; trying to set invalid attribute names causes a compile-time error. Calling "attrs::get" on a subroutine reference or name returns its list of attribute names. Notice that "attrs::get" is not exported. Valid attributes are as follows.
IndexThis document was created by man2html, using the manual pages. Time: 00:05:00 GMT, March 29, 2024 |