top | item 15067173

(no title)

davecardwell | 8 years 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 }))

discuss

order

kbenson|8 years ago

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.