On Wed, 20 Jun 2001, Stas Bekman wrote:
 
> Can you give me an example of how would you want to use those? Why would
> you want to have notify functions have this capability.

can you give me examples of how you would want to use dumper() ?
they would be the same reasons.
 
> Something like this?
> 
> my $expand = sub {
>   HAS_DUMPER ?
>     map { ref $_ ? Data::Dumper::Dumper($_) : $_ } @_ :
>     @_;
> }
> 
> sub c_trace {
>      my $level = shift;
>      my $fh = \*STDERR; #could configure to something else
>      print $fh $colors{$level},
>            join("\n", $expand->(@_), ''), $colors{reset};
>  }

looks good, but i would change the first part to:
*expand = HAS_DUMPER ? sub { map { ... } } : sub { @_ };
 
> So shell we start with Apache::TestTrace for now?

sounds good.

do you plan to implement a $Level similar to Apache's
LogLevel, so we have the default set to error or warning for normal
builds, but people can turn it up for more verbose output.  that would be
cool.


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

Reply via email to