http://qs321.pair.com?node_id=606093


in reply to how to use attributes?

You can't declare subs (or variables) using attributes that have not been "defined" yet. To define your own attributes, you can use a module like Attribute::Handlers. For each attribute, you specify a handler that gets called whenever a sub (or variable) is defined using that attribute.

blokhead

Replies are listed 'Best First'.
Re^2: how to use attributes?
by rvosa (Curate) on Mar 22, 2007 at 19:05 UTC
    Aha! That's what I needed, I think. Thanks!