On Mon, 19 Nov 2001, Stas Bekman wrote:
 
> We should try not to print debug stuff without prefixing each line with 
> # (at least for the new tests that we write). Otherwise it may mess up 
> Test::Harness (according to its docs).

right.  i actually meant to take those out before committing.
 
> probably should add something like that:
> 
> Apache::TestUtil:
> sub t_print_debug { print map {"# $_\n"} map {split /\n/} @_ };

nice.  naming it t_print() would be fine too.
 
> and also
> 
> sub t_dumper {
>      require Data::Dumper;
>      t_print_debug(Data::Dumper::Dumper(@_));
> }
> 
> so now all you've to write is
> 
> t_dumper(\%env);

+1



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to