> From: Michael G Schwern [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 19, 2005 3:06 PM
> On Thu, May 19, 2005 at 02:42:18PM -0800, Vonnahme, Nathan wrote: > > So I guess the problem is, Test::More produces output when I use() it, > > but in some cases I'd like to not use() it, but I don't know whether I > > want it until runtime and by then it's already been use()d... > > I suspect you're doing this: > > use Test::More tests => 7; > > and you want this: > > use Test::More; > > if( $Run_Tests ) { > plan tests => 7; > } > Thanks, that was exactly what I needed! You rock Michael G Schwern! I had to take care to not try any tests until after I had used that exported plan() function, and I found that this also works: plan 'no_plan'; which is just fun to read, I think I'll use it everywhere. -n