|laziness, impatience, and hubris|
Re^6: RFC: Simulating Python's @decorators in Perl with Attributes (exporting attributes)by LanX (Bishop)
|on Jun 02, 2013 at 20:03 UTC||Need Help??|
yep, tried to analyze Attribute::Handlers but no time to dig into details.
in the meantime, here a hack that works: (plz ignore, see UPDATE)
Beside of this:
I think attributes could be monkey patched to check a dedicated package like 'UNIVERSAL::attributes" for global attributes.
( addicted to the Perl Programming Language)
less hacky, more stable!
the essential problem is that :ATTR stores the combination of package and coderef for every new attribute to be able to identify them later via findsym().