Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Data-Dumper CPAN distribution.

Report information
The Basics
Id: 18302
Status: new
Priority: 0/
Queue: Data-Dumper

Owner: Nobody in particular
Requestors: crazyForDynamite [...]

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)

Subject: Feature Request: $D::D::SkipTheseObjects
Download (untitled) / with headers
text/plain 643b
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

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to