Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: how to use attributes?

by blokhead (Monsignor)
on Mar 22, 2007 at 18:48 UTC ( #606093=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://606093]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2020-10-31 23:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (291 votes). Check out past polls.

    Notices?