use Scalar::Util qw(blessed reftype refaddr); sub stringify ($) {sprintf "%s=%s(0x%x)",blessed $_[0],reftype $_[0],refaddr $_[0]}