Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • .. but maybe you should even try to dump each ref in the argument list (untested):

    sub explain {
      return unless $ENV{TEST_VERBOSE};
      Test::More::diag(
        map{
          ref $_ ? do {
            require Data::Dumper;
            local $Data::Dumper::Indent   = 1;
         
  • I think it is such a good idea that I would plead for it to be moved into Test::More::diag. But as that is not likely, your idea is quite nifty og even nice.
  • After something like ten years of Perl, I still expect diag to dumper for me, so you won't be surprising me at all.

    --
    rjbs