Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
The stupid question is the question not asked
 
PerlMonks  

Re: How Are Attributes Useful?

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 18, 2005 at 19: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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.