in reply to Fine grain control over Data::Dumper

In the pure Perl implementation of Data::Dumper, output for blessed references is produced in Data::Dumper::_dump(). If the Freezer method is defined and the object supports that method, the freezer method is called to prepare the object before it is dumped, but it is otherwise dumped in the same way as any other object, producing the same style of output.

There are no hooks in _dump() to easily override the formatting of blessed references. On the other hand, if you can live with the performance of the pure Perl implementation, it is just Perl and it would not be too difficult to change it to detect your object type and display it differently.

  • Comment on Re: Fine grain control over Data::Dumper