garu/Data-Printer — pull request #27 by iarna (2012-07-05 18:41:15+00:00)
Title: Improved support for unknown core datatypes

The way this was previously implemented hooked at the -class handler, but it meant that *every* -class handler would have to check the blessed status of $item. This adds a new type of thing and provides a default handler for it. So for instance:

perl -MDDP -E '$a=\substr("abc",1,2); p($a);'

Will give "LVALUE" in a unique color combination.

(I'll add in explicit handlers for the remaining 5.16.0 data types in another patch.)