Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Interesting testing idea ...

by autarch (Hermit)
on Jan 21, 2009 at 21:52 UTC ( [id://737971] : note . print w/replies, xml ) Need Help??

in reply to Interesting testing idea ...

I think to do this you'd either need a source filter (gah!) or Devel::Declare.

As for whether it's a good idea. I don't know. I'm not a big fan of subroutine attributes, and your attribute seems redundant anyway. I think I'd prefer something more like this:

sub foo { ... } is tested(2) { ... }

That looks fairly 6-ish.