It uses a base class as that is the intended implementation from Attribute::Handlers. However, I could have made the attributes universal by stuffing them in the UNIVERSAL class, but that seemed like an abomination (even though many programmers are doing it -- I'm wondering if there is some benefit that I'm missing).
I had tried setting it up via exporting, but I couldn't get it to work. Probably just a screwup in my syntax somewhere.
Cheers,
Ovid
New address of my CGI Course.
In reply to Re: Re: RFC: Sub::Attributes -- alter subroutine context behavior with attributes
by Ovid
in thread RFC: Sub::Attributes -- alter subroutine context behavior with attributes
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |