in reply to No tests run!

Is this really a question about how to conditionally load a module?

Yes. And in your case, I'd use eval.

sub run_tests { eval q( use Test::More qw/no_plan/ ); # ... }

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: No tests run!
by hey_david (Sexton) on Jul 25, 2003 at 12:45 UTC
    Sauoq,
    Worked like a charm. Thanks!
    -David