Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How Are Attributes Useful?

by CountZero (Bishop)
on Jan 18, 2005 at 22:42 UTC ( [id://423210]=note: print w/replies, xml ) Need Help??


in reply to How Are Attributes Useful?

IIRC, Maypole makes use of subroutine attributes to check whether some subroutines are "exported" or not. Rather than having to maintain a list of "exported" subroutines, you simply add the "exported" attribute to the subroutine and Maypole will do the right thing (or so the docs say -- unfortunately I have not been able to get Maypole running on my system).

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Replies are listed 'Best First'.
Re^2: How Are Attributes Useful?
by Limbic~Region (Chancellor) on Jan 19, 2005 at 00:45 UTC
    CountZero,
    This was an example tye provided in the CB where the same thing could be accomplished without attributes. Like I said, it is nice that it makes certain very specific tasks easier but it seems that there should be something more general and more powerful about them. I haven't had a chance to go through all of the replies yet so hopefully someone has demystified it for me/us.

    Cheers - L~R

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-30 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found