So what's my faux pas?
Using a source filter.
There are many good reasons why source filters aren't recommended, for example because they can lead to bugs that are very hard to find, and that you can't combine multiple source filters in general.
Why not use Class::InsideOut or Object::Inside for it? If you must do it yourself, write a subroutine that installs the handler in the caller's namespace - might be a few more lines, but much more robust than a source filter.
In reply to Re: RFC: The Poor Man's Accessor Filter
by moritz
in thread RFC: The Poor Man's Accessor Filter
by rje
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |