in reply to Re: How Are Attributes Useful?
in thread How Are Attributes Useful?
Really. I haven't found a single example of how one might modify the behavior of a subroutine using attributes outside the few built-ins. As far as querying the attributes - it was in the synopsis of perldoc attributes
I have looked at Attribute::Handlers and still felt unsatisfied. Attribute::Handlers::Prospective looks promising after glancing at the documentation but I find it hard to believe that there are no code examples outside the module. Why is this I wonder. It seems to me that you are right - the majority of us are in the dark and so attributes, if useful at all as others have implied, are way underdeveloped in perl.use attributes (); # optional, to get subroutine declarations my @attrlist = attributes::get(\&foo);
Cheers - L~R
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How Are Attributes Useful?
by redlemon (Hermit) on Jan 19, 2005 at 22:27 UTC |