----- Original Message ---- > From: Gabor Szabo <szab...@gmail.com>
> It is obvious but would be nice if would not happen > > use Test::More; > diag explain $data; > > works nicely, then if I swicth to > > use Test::Most; > diag explain $data; > > it stops printing as it now requires TEST_VERBOSE > > > so Test::Most is not a drop-in replacement for Test::More. In Test::Most, 'explain' shows the output all by itself. You don't need the diag() in front of it. At the time I wrote it, it was backwards-compatible because Test::More didn't have it. I argued that most programmers would just want to do this: explain $thing; Schwern argued that I was now trying to do too much with explain (call Dumper and output) and that those should be separate. While he's right that explain() would be doing more than one thing, I feel that optimizing for the common case is what was important here (you just want your data dumped), but Schwern and I couldn't agree, hence the incompatibility. Chees, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog - http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6