|
|
|
|
|
by hoytech
2712 days ago
|
|
It's pretty much exactly like Ingy's XXX perl module from 2006: https://metacpan.org/pod/XXX Prints a YAML dump of "my str", followed by file/line number information, then returns its argument so it can be embedded in expressions: $ perl -MXXX -E 'say uc(WWW("my str"))'
--- my str
...
at -e line 1
MY STR
Data::Dump's "ddx" (1996) is also commonly used for print debugging, except it doesn't return the argument. |
|
...
So, I just looked it up, and I found it. Actually, Damien wrote two. One that he updated from 2014 to 2016, and one he started in 2017 and has maintained to the present. I have no idea the reason for that.
1: https://metacpan.org/pod/Data::Show
2: https://metacpan.org/pod/Data::Dx