XP is just a number | |
PerlMonks |
Re: Condensed output of Data::Dumper used on DateTimeby educated_foo (Vicar) |
on Feb 01, 2012 at 16:17 UTC ( [id://951260]=note: print w/replies, xml ) | Need Help?? |
Yes. Set $Data::Dumper::Freezer to the name of the method you want called, then implement that method in DateTime, e.g.
Even better, you can localize the change to $Data::Dumper::Freezer so pretty-printing only happens when you want it to. EDIT: Corrected to DateTime::my_dumper...
In Section
Seekers of Perl Wisdom
|
|