in reply to Help to understand the Data::TreeDumper Filters
return( 'SCALAR', undef, $_{'node'} );
I have no experience with Data::TreeDumper filters, but this $_{'node'} looks very strange. What is this meant to be?
Also, the docs say "The filter returns the node's type, an eventual new structure (see below) and a list of 'keys' to display. The keys are hash keys or array indexes.". In other words, as long as you return "keys-to-display", it doesn't seem to make sense to have 'SCALAR' as type (as you can apply neither keys nor indices).
I wonder if
return( 'HASH', undef, 'node' );
would be closer to what you want... (presuming 'node' is the key you want to display)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help to understand the Data::TreeDumper Filters
by Dirk80 (Pilgrim) on Apr 13, 2011 at 08:51 UTC | |
by Eliya (Vicar) on Apr 13, 2011 at 09:57 UTC | |
by Dirk80 (Pilgrim) on Apr 13, 2011 at 11:31 UTC |