---
name: "attrs"
section: "3pm"
platform: "linux"
package: "perl-5.004-doc"
version: "5.004.05-6"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/attrs/3pm"
---

# attrs(3pm)

set/get attributes of a subroutine

## NAME

attrs - set/get attributes of a subroutine

## SYNOPSIS

```
    sub foo {
        use attrs qw(locked method);
        ...
    }
```

```
    @a = attrs::get(\&foo);
```

## DESCRIPTION

This module lets you set and get attributes for subroutines.

For 5.004\_xx this is an empty stub provided for backwards compatibility for scripts and modules written for 5.005.
