|
|
| more useful options | |
| PerlMonks |
perlman:lib:attrsby root (Monk) |
| on Dec 23, 1999 at 00:49 UTC ( [id://1132]=perlfunc: print w/replies, xml ) | Need Help?? |
lib:attrsSee the current Perl documentation for lib:attrs. Here is our local, out-dated (pre-5.6) version: ![]() attrs - set/get attributes of a subroutine
![]()
sub foo {
use attrs qw(locked method);
...
}
@a = attrs::get(\&foo);
![]()
This module 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
|
|