Hacker News new | ask | show | jobs
by davecardwell 3219 days ago
The Data::Tersify documentation mentions that it only summarizes if the object is “not the root structure passed to tersify (so if you actually to want to dump a complex DBIx::Class object, for instance, you still can)”.

So instead of…

  Dumper(tersify($dt))
You would want to try…

  Dumper(tersify({ now => $dt }))
1 comments

Ah, that explains it. I had noticed that's how they specified it in Data::Tersify::Plugin::DateTime, but had missed that note.

I'm not sure the reasoning behind that behavior. Presumably if you don't want it tersified, you don't pass it to tersify, and just pass it to your dumper function directly.