I often use Data::Dumper like this:
print Data::Dumepr->Dump([$name],['name']);
# Which will dump with the variable $name = { .... } instead of $VAR1 = {
... }
I use log4perl and Data::Dumper like this (from the log4perl faq)
$logger->trace( {filter => \&Data::Dumper::Dumper, value => $name}, undef,
$TRACE, undef, undef);
So my question is, how can I log the value so it looks like $name instead of
$VAR1 in the saved log?
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel