Skip Menu |

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

Report information
The Basics
Id: 117690
Status: new
Priority: 0/
Queue: Data-Dump

People
Owner: Nobody in particular
Requestors: PERLANCAR [...] cpan.org
Cc:
AdminCc:

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



Subject: return original argument?
Some other dumper modules (e.g. XXX, Data::Dmp) return their original arguments to make it easier to insert a dump statement during logging. How about making dd() and ddx() return the original arguments? They currently don't return anything except the return of print(). I also wrote about this in http://cpanratings.perl.org/dist/XXX#11890 reproduced below: ----------------------- The part that makes this module convenient is that the functions return their original arguments. So when debugging (peppering dump statements), you don't have to change this: return ["some", $expr]; to this (taking an example from another dumping module, Data::Dump): my $tmp = ["some", $expr]; dd $tmp; return $tmp; but just this: return YYY ["some", $expr]; This should be imitated by the other dumper functions. -----------------------