Synopsis
$ perl -MDD -e 'print D({foo => "asdf", bar => "qwer"})'
$VAR1 = {
'bar' => 'qwer',
'foo' => 'asdf'
};
$ perl -MDD=pD -e 'pD({foo => "asdf", bar => "qwer"})'
$VAR1 = {
'bar' => 'qwer',
'foo' => 'asdf'
};
$ perl -MDD -e '$d = DD->new([{foo => "asdf", bar => "qwer"}]); print $d->Dump'
$VAR1 = {
'bar' => 'qwer',
'foo' => 'asdf'
};
Description
Hello!
There's DDS as an alias to Data::Dumper::Streamer and DDP to Data::Dumper::Printer. But I couldn't find an alias to Data::Dumper.
I think that one liners using Data::Dumper might become more readable using -MDD instead of -MData::Dumper.
As I don't want to pollute the CPAN namespace, I created DD.pm and pushed it onto github. DD.pm was coded fairly without thinking much about side effects and such (inheritance, export, ..). Hence, everything might change and actually I would be happy about any feedback.
regards, Robert

Comments
Please sign up to post a review.