Data-Printer icon indicating copy to clipboard operation
Data-Printer copied to clipboard

[wishlist] Option to show variable name

Open garu opened this issue 6 years ago • 2 comments

Original request from @richcsst as RT102937:

"One of the nice things about Data::Dumper::Simple was its ability to show the variable name. Data::Printer lacks in this regard, but is vastly superior in all other aspects. How about a flag in settings to turn on variable name reporting? If there is a way to do this with filters, it's not documented, and should be added to the docs (if that is the case)."

garu avatar May 18 '18 03:05 garu

Hopefully we'll be able to fix this with https://github.com/garu/Data-Printer/pull/74

garu avatar May 18 '18 03:05 garu

Well... while Data::Dumper::Simple's variable name feature was nice, it carried with it a large price. The startup time for a script was increased dramatically. Apparently DDS scanned the entire script and performed modifications on the internal structure of the code before final compile. This is not a big deal for small scripts, but large and complex scripts with many modules can take up to 30 seconds to initialize. This is nuts.

richcsst avatar May 20 '18 01:05 richcsst