For example, Class::Accessor injects code into my module/namespace - does that count as "exercise", at least if the accessor is used within my code?
Of course yes - but as you say, only if your code actually uses those accessors.
As counter example, parent.pm does all its work in the ->import() subroutine and hence will not count as "exercised", right?This is an edge case; parent.pm works like a pragma (at compile time), so I would count that exercised, too. If you just use parent qw(Catalyst Jifty) without milling any code of those, then you are cheating not only with Catalyst and Jifty, but with parent.pm also.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re^2: Challenge: CPAN Golf
by shmem
in thread Challenge: CPAN Golf
by shmem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |