Subject: | Feature Request: $D::D::SkipTheseObjects |
Quite simply, a variable holding a regex:
$Data::Dumper::SkipObjects = qr/TK::.*/;
That, when recursing through a structure, if the Dumper comes across an
object blessed into a package that matches this regex, it will simply
skip it and leave the package name in its place:
$struct = [
(bless { }, TK::SOME::WIDGET::I::DONT::CARE::ABOUT),
[ $data_i_do_care_about, $more, $stuff ],
];
Dumper($struct); would print:
$VAR1 = [
*** TK::SOME::WIDGET::I::DONT::CARE::ABOUT ***,
[
$data_i_do_care_about,
$more,
$stuff,
],
];
This would help greatly when dealing with (in my case especially)
modules like Tk and POE