I'm trying to print some parsing trees, and Data::Dumper very much for this, for example, to print:
{ 'A' => { 'ID' => 'y' }, 'OP' => '=', 'B' => { 'NUM' => '5' } },
instead of saying:
{ 'A' => {'ID' => 'y'}, 'OP' => '=', 'B' => {'NUM' => '5'} },
and it is very difficult to read, since it takes a huge number of lines.
Is there any Perl library that does what Data::Dumper does except shorter ones, or do I need to write my own?
source share