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?? |
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
In Section
Seekers of Perl Wisdom
|
|