| 1 | package attrs; | ||
| 2 | |||
| 3 | 2 | ▶ | use vars qw($VERSION); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | $VERSION = "0.1"; | |
| 5 | |||
| 6 | 2 | 1; | |
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | attrs - set/get attributes of a subroutine | ||
| 11 | |||
| 12 | =head1 SYNOPSIS | ||
| 13 | |||
| 14 | sub foo { | ||
| 15 | use attrs qw(locked method); | ||
| 16 | ... | ||
| 17 | } | ||
| 18 | |||
| 19 | @a = attrs::get(\&foo); | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This module lets you set and get attributes for subroutines. | ||
| 24 | |||
| 25 | For 5.004_xx this is an empty stub provided for backwards | ||
| 26 | compatibility for scripts and modules written for 5.005. | ||
| 27 | |||
| 28 | =cut | ||