data-dump icon indicating copy to clipboard operation
data-dump copied to clipboard

Let user set wrap size with $Data::Dump::WRAP

Open cybernicus opened this issue 6 years ago • 2 comments

A trivial patch to let the user change the size an object may grow to before it gets wrapped. I left the default at 60 from your code, but changed it to an exposed variable $Data::Dump::WRAP where the user can set a larger size if desired.

If you're interested in it, you can take it as it is, or I can write some tests and/or documentation if you'd prefer.

I don't check my EMail often so if there's something you'd like done post-haste, ping me on PerlMonks, which I visit nearly every day.

Thanks!

cybernicus avatar Nov 18 '19 00:11 cybernicus

This would solve an issue for me. Any chance it might get merged at some point?

rdsteiner avatar Mar 18 '21 13:03 rdsteiner

Data::Dump version 1.25 contains this feature, via the $Data::Dump::LINEWIDTH variable.

Your name is credited on the Changes file. Thank you for your contribution!

garu avatar Jun 26 '21 04:06 garu